File tree Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 9
9
10
10
class Hive (Application ):
11
11
__authenticator__ = Authenticator ()
12
- __configuration__ = '''
13
- db:
14
- url: postgresql://postgres:postgres@localhost/sharelists_dev
15
- test_url: postgresql://postgres:postgres@localhost/sharelists_test
16
- administrative_url: postgresql://postgres:postgres@localhost/postgres
12
+ __cli_arguments__ = [
13
+ UserCommand
14
+ ]
17
15
18
- migration:
19
- directory: %(root_path)s/migration
20
- ini: %(root_path)s/alembic.ini
21
-
22
- '''
23
-
24
- def __init__ (self , application_name = 'sharelists' ):
25
- from hive import __version__
16
+ def __init__ (self , name = 'hive' ):
26
17
super ().__init__ (
27
- application_name ,
18
+ name ,
28
19
root = Root (),
29
- root_path = dirname (__file__ ),
30
- version = __version__
20
+ path_ = dirname (__file__ ),
31
21
)
32
22
33
23
def insert_mockup (self , args = None ): # pragma: no cover
@@ -37,6 +27,3 @@ def insert_mockup(self, args=None): # pragma: no cover
37
27
DBSession .add (oscar )
38
28
DBSession .commit ()
39
29
40
- def get_cli_arguments (self ):
41
- return [UserCommand ]
42
-
Original file line number Diff line number Diff line change 11
11
12
12
13
13
dependencies = [
14
- 'restfulpy >= 3.4, < 4' ,
15
- 'easycli >= 1.4.0, < 2' ,
14
+ 'restfulpy >= 4, < 5' ,
16
15
17
16
# Deployment
18
17
'gunicorn' ,
You can’t perform that action at this time.
0 commit comments