equal
deleted
inserted
replaced
67 schema2dot.schema2dot(schema, path) |
67 schema2dot.schema2dot(schema, path) |
68 print 'generated', path |
68 print 'generated', path |
69 |
69 |
70 |
70 |
71 class PopulateDataDirCommand(LaxCommand): |
71 class PopulateDataDirCommand(LaxCommand): |
72 """populate application's data directory according to used cubes""" |
72 """populate instance's data directory according to used cubes""" |
73 name = 'populatedata' |
73 name = 'populatedata' |
74 |
74 |
75 def _run(self, args): |
75 def _run(self, args): |
76 assert not args, 'no argument expected' |
76 assert not args, 'no argument expected' |
77 # first clean everything which is a symlink from the data directory |
77 # first clean everything which is a symlink from the data directory |
116 setattr(self.config, 'cookie', '__session=' + sessionid) |
116 setattr(self.config, 'cookie', '__session=' + sessionid) |
117 return 1 # on exception should be raised |
117 return 1 # on exception should be raised |
118 |
118 |
119 |
119 |
120 class URLCommand(LaxCommand): |
120 class URLCommand(LaxCommand): |
121 """abstract class for commands doing stuff by accessing the web application |
121 """abstract class for commands doing stuff by accessing the web instance |
122 """ |
122 """ |
123 min_args = max_args = 1 |
123 min_args = max_args = 1 |
124 arguments = '<site url>' |
124 arguments = '<site url>' |
125 |
125 |
126 options = ( |
126 options = ( |