| author | Tomas Zeman <tzeman@volny.cz> |
| Fri, 20 Apr 2012 08:26:23 +0200 | |
| changeset 68 | f8f8cac057a7 |
| parent 67 | a62b754b945a |
| child 69 | b1dc0efd1303 |
| 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._ |
| 60 | 20 |
import fis.aaa.ui.UserSnippet |
| 35 | 21 |
import fis.crm.ui.ContactSnippet |
| 68 | 22 |
import fis.geo.ui.{CitySnippet, CountrySnippet}
|
|
22
94ed9cfdb123
Squeryl connection manager instead of mapper-based
Tomas Zeman <tzeman@volny.cz>
parents:
16
diff
changeset
|
23 |
import fis.db.SquerylTxMgr |
| 11 | 24 |
import net.liftweb.common._ |
25 |
import net.liftweb.http._ |
|
| 15 | 26 |
import net.liftweb.sitemap._ |
| 11 | 27 |
import net.liftweb.squerylrecord.SquerylRecord |
28 |
import net.liftweb.util._ |
|
29 |
import net.liftweb.util.Helpers._ |
|
30 |
import net.tz.lift.boot.ProtoBoot |
|
31 |
||
32 |
class Boot extends ProtoBoot {
|
|
33 |
override def boot = {
|
|
34 |
||
35 |
/* DB stuff */ |
|
|
22
94ed9cfdb123
Squeryl connection manager instead of mapper-based
Tomas Zeman <tzeman@volny.cz>
parents:
16
diff
changeset
|
36 |
SquerylTxMgr.init() |
| 11 | 37 |
|
38 |
super.boot |
|
39 |
||
| 15 | 40 |
import Loc._ |
41 |
||
| 49 | 42 |
SecNav.init() |
43 |
||
| 15 | 44 |
val menus = List(Menu("/", "FIS Main page") / "index" >> Hidden,
|
| 60 | 45 |
Menu.i("Home") / "" , ContactSnippet.menu,
|
| 67 | 46 |
UserSnippet.menu, |
| 68 | 47 |
CountrySnippet.menu, |
48 |
CitySnippet.menu) |
|
| 15 | 49 |
|
50 |
LiftRules.setSiteMap(SiteMap(menus:_*)) |
|
| 41 | 51 |
|
52 |
LiftRules.htmlProperties.default.set { r: Req =>
|
|
53 |
Html5Properties(r.userAgent) } |
|
|
51
523c5c5b84e5
[mq]: twitter-bootstrap-forms-error+help.patch
Tomas Zeman <tzeman@volny.cz>
parents:
49
diff
changeset
|
54 |
|
|
523c5c5b84e5
[mq]: twitter-bootstrap-forms-error+help.patch
Tomas Zeman <tzeman@volny.cz>
parents:
49
diff
changeset
|
55 |
ScreenRules.init() |
| 11 | 56 |
} |
57 |
} |
|
58 |
||
59 |
// vim: set ts=2 sw=2 et: |