HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.
2.0.0-chaika
Hierarchical Cluster Engine Python language binding
ftest_cement_app.py
Go to the documentation of this file.
1
#coding: utf-8
2
'''
3
HCE project, Python bindings, DC dependencies
4
The cement app research tests.
5
6
@package: drce
7
@author bgv bgv.hce@gmail.com
8
@link: http://hierarchical-cluster-engine.com/
9
@copyright: Copyright © 2015 IOIX Ukraine
10
@license: http://hierarchical-cluster-engine.com/license/
11
@since: 0.1
12
'''
13
14
15
from
cement.core
import
foundation, controller
16
17
class
MyController
(controller.CementBaseController):
18
class
Meta
:
19
label =
'base'
20
arguments = [([
'-f'
,
'--foo'
], dict(help=
'Notorious foo option'
)), ]
21
config_defaults = dict(
22
debug=
False
,
23
some_config_param=
'some_value'
,
24
)
25
26
@controller.expose(help=
'This is the default command'
, hide=
True
)
27
def
default
(self):
28
#print str(self.app._meta.__dict__)
29
print(
'Hello World'
)
30
31
class
MyApp
(foundation.CementApp):
32
class
Meta
:
33
label =
'helloworld'
34
extensions = [
'daemon'
,
'json'
, ]
35
base_controller = MyController
36
37
app =
MyApp
()
38
try
:
39
app.setup()
40
app.run()
41
finally
:
42
app.close()
43
44
ftests.ftest_cement_app.MyApp.Meta
Definition:
ftest_cement_app.py:32
ftests.ftest_cement_app.MyApp
Definition:
ftest_cement_app.py:31
ftests.ftest_cement_app.MyController.Meta
Definition:
ftest_cement_app.py:18
ftests.ftest_cement_app.MyController.default
def default(self)
Definition:
ftest_cement_app.py:27
ftests.ftest_cement_app.MyController
Definition:
ftest_cement_app.py:17
sources
hce
ftests
ftest_cement_app.py
Generated on Fri Nov 24 2017 18:54:00 for HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings. by
1.8.13