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

All Samples(89)  |  Call(0)  |  Derive(0)  |  Import(89)

src/p/t/ptahcms-0.5.1/ptahcms/manage/apps.py   ptahcms(Download)
""" app management module """
import ptah, ptahcms
from ptah import view, form
from pyramid.view import view_config
from pyramid.httpexceptions import HTTPFound

src/p/t/ptahcms-0.5.1/ptahcms/security.py   ptahcms(Download)
import inspect
from pyramid.compat import string_types
 
import ptah
import ptahcms

src/p/t/ptahcms-0.5.1/ptahcms/rest.py   ptahcms(Download)
from ptah import config
 
import ptahcms
from ptahcms import wrap
from ptahcms import RestService

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_traverser.py   ptahcms(Download)
    def setUp(self):
        import ptahcms
 
        global ApplicationRoot
        class ApplicationRoot(ptahcms.ApplicationRoot):
    def _create_content(self):
        import ptahcms
 
        factory = ptahcms.ApplicationFactory(
            ApplicationRoot, '/test', 'root', 'Root App')
    def test_traverser_root_view(self):
        import ptahcms
        from ptahcms.traverser import ContentTraverser
 
        self._create_content()
    def test_traverser_default_root(self):
        import ptahcms
 
        request = self.make_request(
            environ={'PATH_INFO': '/test/index.html',

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_tinfo.py   ptahcms(Download)
    def test_tinfo(self):
        import ptahcms
 
        global MyContent
        class MyContent(ptahcms.Content):
    def test_tinfo_title(self):
        import ptahcms
 
        class MyContent(ptahcms.Content):
            __type__ = ptahcms.Type('mycontent')
    def test_tinfo_checks(self):
        import ptahcms
 
        global MyContent, MyContainer
        class MyContent(ptahcms.Content):
    def test_tinfo_list(self):
        import ptahcms
 
        global MyContent, MyContainer
        class MyContent(ptahcms.Content):
    def test_tinfo_global_allow_Node(self):
        import ptahcms
 
        global MyContent
        class MyContent(ptahcms.Node):

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_security.py   ptahcms(Download)
import ptahcms
from ptah import config
from ptah.testing import PtahTestCase
 
 
class TestAction(PtahTestCase):
 
    def test_cms_action_reg(self):
        import ptahcms
    def test_cms_action_reg_name(self):
        import ptahcms
 
        class Test(object):
            @ptahcms.action(name='test')
    def test_cms_action_reg_permission(self):
        import ptahcms
 
        class Test(object):
            @ptahcms.action(permission='perm')
    def test_cms_action_inherit(self):
        import ptahcms
        from ptahcms.security import build_class_actions
 
        class Test(object):

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_rest.py   ptahcms(Download)
import transaction
from zope import interface
import ptah, ptahcms
from ptah import config
from ptah.testing import PtahTestCase

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_node.py   ptahcms(Download)
import transaction
import ptah
from ptah.testing import PtahTestCase
 
import ptahcms
    def test_node_ctor(self):
        import ptahcms
 
        # it not possible to instatiate Node
        self.assertRaises(TypeError, ptahcms.Node)
 
    def test_node(self):
        import ptahcms
    def test_polymorphic_node(self):
        import ptahcms
 
        class MyContent(ptahcms.Node):
            __mapper_args__ = {'polymorphic_identity': 'mycontent'}
    def test_node_parent(self):
        import ptahcms
 
        class MyContent(ptahcms.Node):
            __mapper_args__ = {'polymorphic_identity': 'mycontent'}

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_loadapi.py   ptahcms(Download)
from pyramid.httpexceptions import HTTPNotFound, HTTPForbidden
 
import ptahcms
 
 

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_forms.py   ptahcms(Download)
    def setUp(self):
        import ptahcms
 
        global Content, Container
        class Content(ptahcms.Content):
    def test_addform_ctor(self):
        import ptahcms
        from ptahcms.forms import AddForm
 
        container = Container()
        form = AddForm(container, DummyRequest())
        self.assertIs(form.container, container)
 
    def test_addform_basics(self):
        import ptahcms
    def test_addform_choosename(self):
        import ptahcms
        from ptahcms.forms import AddForm
 
        container = Container()
    def test_addform_choosename_existing(self):
        import ptahcms
        from ptahcms.forms import AddForm
 
        container = Container()

  1 | 2  Next