| author | Tomas Zeman <tzeman@volny.cz> |
| Thu, 12 Apr 2012 10:52:42 +0200 | |
| changeset 49 | c24112f0f084 |
| parent 41 | 216eac8b08b4 |
| child 51 | 523c5c5b84e5 |
| permissions | -rw-r--r-- |
| 11 | 1 |
/* |
|
22
94ed9cfdb123
Squeryl connection manager instead of mapper-based
Tomas Zeman <tzeman@volny.cz>
parents:
16
diff
changeset
|
2 |
* Copyright 2011-2012 Tomas Zeman <tzeman@volny.cz> |
| 11 | 3 |
* |
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
*/ |
|
16 |
package bootstrap.liftweb |
|
17 |
||
18 |
import fis.base.model._ |
|
| 49 | 19 |
import fis.base.ui._ |
| 35 | 20 |
import fis.crm.ui.ContactSnippet |
|
22
94ed9cfdb123
Squeryl connection manager instead of mapper-based
Tomas Zeman <tzeman@volny.cz>
parents:
16
diff
changeset
|
21 |
import fis.db.SquerylTxMgr |
| 11 | 22 |
import net.liftweb.common._ |
23 |
import net.liftweb.http._ |
|
| 15 | 24 |
import net.liftweb.sitemap._ |
| 11 | 25 |
import net.liftweb.squerylrecord.SquerylRecord |
26 |
import net.liftweb.util._ |
|
27 |
import net.liftweb.util.Helpers._ |
|
28 |
import net.tz.lift.boot.ProtoBoot |
|
29 |
||
30 |
class Boot extends ProtoBoot {
|
|
31 |
override def boot = {
|
|
32 |
||
33 |
/* DB stuff */ |
|
|
22
94ed9cfdb123
Squeryl connection manager instead of mapper-based
Tomas Zeman <tzeman@volny.cz>
parents:
16
diff
changeset
|
34 |
SquerylTxMgr.init() |
| 11 | 35 |
|
36 |
super.boot |
|
37 |
||
| 15 | 38 |
import Loc._ |
39 |
||
| 49 | 40 |
SecNav.init() |
41 |
||
| 15 | 42 |
val menus = List(Menu("/", "FIS Main page") / "index" >> Hidden,
|
| 35 | 43 |
Menu.i("Home") / "" , ContactSnippet.menu)
|
| 15 | 44 |
|
45 |
LiftRules.setSiteMap(SiteMap(menus:_*)) |
|
| 41 | 46 |
|
47 |
LiftRules.htmlProperties.default.set { r: Req =>
|
|
48 |
Html5Properties(r.userAgent) } |
|
| 11 | 49 |
} |
50 |
} |
|
51 |
||
52 |
// vim: set ts=2 sw=2 et: |