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

All Samples(58)  |  Call(42)  |  Derive(0)  |  Import(16)

src/d/j/django-portlets-1.1.1/portlets/example/models.py   django-portlets(Download)
import portlets
from portlets.models import Portlet
from portlets.utils import register_portlet
 
class TextPortlet(Portlet):

src/d/j/django-lfs-HEAD/lfs/portlet/management.py   django-lfs(Download)
# 3rd party imports
import portlets
from portlets.utils import register_portlet
 
 
def register_lfs_portlets(sender, **kwargs):
    # don't register our portlets until the table has been created by syncdb
    if sender == portlets.models:
        register_portlet(AverageRatingPortlet, "Average Rating")
        register_portlet(CartPortlet, "Cart")
        register_portlet(AverageRatingPortlet, "Average Rating")
        register_portlet(CartPortlet, "Cart")
        register_portlet(CategoriesPortlet, "Categories")
        register_portlet(DeliveryTimePortlet, "Delivery Time")
        register_portlet(FilterPortlet, "Filter")

src/d/j/django-lfs-0.7.7/lfs/portlet/management.py   django-lfs(Download)
# 3rd party imports
import portlets
from portlets.utils import register_portlet
 
 
def register_lfs_portlets(sender, **kwargs):
    # don't register our portlets until the table has been created by syncdb
    if sender == portlets.models:
        register_portlet(AverageRatingPortlet, "Average Rating")
        register_portlet(CartPortlet, "Cart")
        register_portlet(AverageRatingPortlet, "Average Rating")
        register_portlet(CartPortlet, "Cart")
        register_portlet(CategoriesPortlet, "Categories")
        register_portlet(DeliveryTimePortlet, "Delivery Time")
        register_portlet(FilterPortlet, "Filter")

src/l/f/lfs-HEAD/portlet/management.py   lfs(Download)
# 3rd party imports
import portlets
from portlets.utils import register_portlet
 
def register_lfs_portlets(sender, **kwargs):
    # don't register our portlets until the table has been created by syncdb
    if sender == portlets.models:
        register_portlet(AverageRatingPortlet, "Average Rating")
        register_portlet(CartPortlet, "Cart")
        register_portlet(CategoriesPortlet, "Categories")
        register_portlet(CartPortlet, "Cart")
        register_portlet(CategoriesPortlet, "Categories")
        register_portlet(DeliveryTimePortlet, "Delivery Time")
        register_portlet(FilterPortlet, "Filter")
        register_portlet(PagesPortlet, "Pages")

src/d/j/django-lfc-1.0.5/lfc/utils/initialize.py   django-lfc(Download)
# portlets imports
from portlets.utils import register_portlet
 
# lfc imports
from lfc.utils.registration import register_template
def initialize():
    """Registers default portlets, templates and content types.
    """
    # Portlets
    register_portlet(NavigationPortlet, "Navigation")
    register_portlet(PagesPortlet, "Pages")
    register_portlet(RandomPortlet, "Random")
    register_portlet(TextPortlet, "Text")

src/l/f/lfc-blog-1.0/lfc_blog/__init__.py   lfc-blog(Download)
 
# portlets imports
from portlets.utils import register_portlet
from portlets.utils import unregister_portlet
 
def install():
    """Installs the blog application.
    """
    # Register Portlets
    register_portlet(BlogPortlet, "Blog")

src/c/c/cc-buildout-HEAD/src/curtocircuito/curtocircuito/__init__.py   cc-buildout(Download)
 
# portlets imports
from portlets.utils import register_portlet
from portlets.utils import unregister_portlet
 

src/d/j/django-lfs-0.7.7/lfs/portlet/models/cart.py   django-lfs(Download)
# portlets imports
from portlets.models import Portlet
from portlets.utils import register_portlet
 
 

src/d/j/django-lfs-HEAD/lfs/portlet/models/cart.py   django-lfs(Download)
# portlets imports
from portlets.models import Portlet
from portlets.utils import register_portlet
 
 

src/l/f/lfs-HEAD/portlet/models/topseller.py   lfs(Download)
# portlets imports
from portlets.models import Portlet
from portlets.utils import register_portlet
 
# lfs imports

  1 | 2  Next