Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(6)  |  Derive(0)  |  Import(7)

src/p/t/ptahcms-0.5.1/ptahcms/__init__.py   ptahcms(Download)
# content add/edit form helpers
from ptahcms.forms import AddForm
from ptahcms.forms import EditForm
 
 

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_forms.py   ptahcms(Download)
    def test_editform_basics(self):
        from ptahcms.forms import EditForm
 
        content = Content()
 
        form = EditForm(content, DummyRequest())
    def test_editform_form_content(self):
        from ptahcms.forms import EditForm
 
        content = Content()
        content.title = 'Test content'
        content.description = 'Desc'
 
        form = EditForm(content, DummyRequest())
    def test_editform_apply_changes(self):
        from ptahcms.forms import EditForm
        ptah.auth_service.set_userid(ptah.SUPERUSER_URI)
 
        content = Content()