| author | Tomas Zeman <tzeman@volny.cz> |
| Tue, 03 Apr 2012 14:39:58 +0200 | |
| changeset 35 | d77d8194ee59 |
| parent 22 | 94ed9cfdb123 |
| child 41 | 216eac8b08b4 |
| 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._ |
|
| 35 | 19 |
import fis.crm.ui.ContactSnippet |
|
22
94ed9cfdb123
Squeryl connection manager instead of mapper-based
Tomas Zeman <tzeman@volny.cz>
parents:
16
diff
changeset
|
20 |
import fis.db.SquerylTxMgr |
| 11 | 21 |
import net.liftweb.common._ |
22 |
import net.liftweb.http._ |
|
| 15 | 23 |
import net.liftweb.sitemap._ |
| 11 | 24 |
import net.liftweb.squerylrecord.SquerylRecord |
25 |
import net.liftweb.util._ |
|
26 |
import net.liftweb.util.Helpers._ |
|
27 |
import net.tz.lift.boot.ProtoBoot |
|
28 |
||
29 |
class Boot extends ProtoBoot {
|
|
30 |
override def boot = {
|
|
31 |
||
32 |
/* DB stuff */ |
|
|
22
94ed9cfdb123
Squeryl connection manager instead of mapper-based
Tomas Zeman <tzeman@volny.cz>
parents:
16
diff
changeset
|
33 |
SquerylTxMgr.init() |
| 11 | 34 |
|
35 |
super.boot |
|
36 |
||
| 15 | 37 |
import Loc._ |
38 |
||
39 |
val menus = List(Menu("/", "FIS Main page") / "index" >> Hidden,
|
|
| 35 | 40 |
Menu.i("Home") / "" , ContactSnippet.menu)
|
| 15 | 41 |
|
42 |
LiftRules.setSiteMap(SiteMap(menus:_*)) |
|
| 11 | 43 |
} |
44 |
} |
|
45 |
||
46 |
// vim: set ts=2 sw=2 et: |