예제 #1
0
파일: repl.py 프로젝트: Ghost-script/ukhra
 def do_loadall(self, line):
     mmlib.load_all(SESSION)
예제 #2
0
### 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)