コード例 #1
0
ファイル: repl.py プロジェクト: Ghost-script/ukhra
 def do_loadall(self, line):
     mmlib.load_all(SESSION)
コード例 #2
0
ファイル: testdata.py プロジェクト: Ghost-script/ukhra
### How to create a new page?


Just type in the URL, if the pages does not exist then it will ask you to start a new one.
Remember to add some summary to each change.

Example URL: '/page/MyNewPage'



### Tags are not showing!!!

Yes, we are yet to add that feature.

###  What format do you support?

We support two of the best developer friendly formats, [markdown](http://daringfireball.net/projects/markdown/syntax) is default choice or else you can use [reStructuredText](http://getnikola.com/quickstart.html).

reST support was added with help from [Nikola](http://getnikola.com/) project.  Yes, we support the [extensions](http://getnikola.com/handbook.html#restructuredtext-extensions) provided by Nikola.'''

page = model.Page(title='Help page', data=helptext, created=datetime.now(), updated=datetime.now(), path='help', writer=1, version=0, format=0)

SESSION.add(page)
SESSION.commit()



r.flushall()
mmlib.load_all(SESSION)
コード例 #3
0
ファイル: testdata.py プロジェクト: tuxology/ukhra
Remember to add some summary to each change.

Example URL: '/page/MyNewPage'



### Tags are not showing!!!

Yes, we are yet to add that feature.

###  What format do you support?

We support two of the best developer friendly formats, [markdown](http://daringfireball.net/projects/markdown/syntax) is default choice or else you can use [reStructuredText](http://getnikola.com/quickstart.html).

reST support was added with help from [Nikola](http://getnikola.com/) project.  Yes, we support the [extensions](http://getnikola.com/handbook.html#restructuredtext-extensions) provided by Nikola.'''

page = model.Page(title='Help page',
                  data=helptext,
                  created=datetime.now(),
                  updated=datetime.now(),
                  path='help',
                  writer=1,
                  version=0,
                  format=0)

SESSION.add(page)
SESSION.commit()

r.flushall()
mmlib.load_all(SESSION)