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

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
Declare new type. This function has to be called within a content
class declaration.

.. code-block:: python

    @ptah.tinfo('My content')
    class MyContent(object):
        pass

src/p/t/ptah-0.8.0/ptah/__init__.py   ptah(Download)
 
# type information
from ptah.typeinfo import tinfo
from ptah.typeinfo import TypeInformation
from ptah.typeinfo import get_type, get_types

src/p/t/ptah-HEAD/ptah/__init__.py   ptah(Download)
 
# type information
from ptah.typeinfo import tinfo
from ptah.typeinfo import TypeInformation
from ptah.typeinfo import get_type, get_types