• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python site.register函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中tendenci.apps.registry.sites.site.register函数的典型用法代码示例。如果您正苦于以下问题:Python register函数的具体用法?Python register怎么用?Python register使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了register函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: RedirectRegistry

from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import CoreRegistry, lazy_reverse
from tendenci.apps.redirects.models import Redirect


class RedirectRegistry(CoreRegistry):
    version = '1.0'
    author = _('Schipul - The Web Marketing Company')
    author_email = '[email protected]schipul.com'
    description = _('Add redirects to preserve SEO')
    icon = '%simages/icons/redirects-color-64x64.png' % settings.STATIC_URL

    url = {
        'add': lazy_reverse('redirect.add'),
        'search': lazy_reverse('redirects'),
    }

site.register(Redirect, RedirectRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:21,代码来源:app_registry.py


示例2: CommitteeRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import AppRegistry, lazy_reverse
from committees.models import Committee


class CommitteeRegistry(AppRegistry):
    version = '1.0'
    author = 'Schipul - The Web Marketing Company'
    author_email = '[email protected]'
    description = 'Create committees type of content'
    
    url = {
        'add': lazy_reverse('committees.add'),
        'search': lazy_reverse('committees.search'),
    }

site.register(Committee, CommitteeRegistry)
开发者ID:tendenci,项目名称:tendenci-committees,代码行数:17,代码来源:app_registry.py


示例3: DirectoryRegistry

from tendenci.apps.theme.templatetags.static import static


class DirectoryRegistry(CoreRegistry):
    version = '1.0'
    author = _('Tendenci - The Open Source AMS for Associations')
    author_email = '[email protected]'
    description = _('Create directories to list businesses')
    icon = static('images/icons/directories-color-64x64.png')

    event_logs = {
        'directory':{
            'base':('440000','CCCC33'),
            'add':('441000','CCCC33'),
            'edit':('442000','CCCC33'),
            'delete':('443000','CCCC33'),
            'search':('444000','CCCC33'),
            'view':('445000','CCCC33'),
            'print_view':('445001','CCCC33'),
            'renew':('442210','CCCC33'),
        }
    }

    url = {
        'add': lazy_reverse('directory.add'),
        'search': lazy_reverse('directories'),
        'list': lazy_reverse('directories'),
    }

site.register(Directory, DirectoryRegistry)
开发者ID:tendenci,项目名称:tendenci,代码行数:30,代码来源:app_registry.py


示例4: lazy_reverse

    url = {
        'add': lazy_reverse('photos_batch_add'),
        'search': lazy_reverse('photos_search'),
    }

class PhotoSetRegistry(CoreRegistry):
    version = '1.0'
    author = _('Schipul - The Web Marketing Company')
    author_email = '[email protected]'
    description = _('Upload photos for the world to see!')
    icon = '%simages/icons/photo-albums-color-64x64.png' % settings.STATIC_URL

    event_logs = {
        'photosets':{
            'base':('991000','1374FF'),
            'add':('991100','2582FF'),
            'edit':('991200','3890FF'),
            'delete':('991300','4A9EFF'),
            'search':('991400','5DACFF'),
            'view':('991500','6FB9FF'),
        }
    }

    url = {
        'add': lazy_reverse('photoset_add'),
        'search': lazy_reverse('photoset_latest'),
    }

#site.register(Image, PhotoRegistry)
site.register(PhotoSet, PhotoSetRegistry)
开发者ID:goetzk,项目名称:tendenci,代码行数:30,代码来源:app_registry.py


示例5: BoxRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import CoreRegistry
from tendenci.apps.boxes.models import Box
from django.utils.translation import ugettext_lazy as _


class BoxRegistry(CoreRegistry):
    version = '1.0'
    author = _('Tendenci - The Open Source AMS for Associations')
    author_email = '[email protected]'
    description = _('Create boxes that allow editable areas in the site theme')

    event_logs = {
        'box':{
            'base':('1100000','5588AA'),
            'add':('1100100','119933'),
            'edit':('1100200','EEDD55'),
            'delete':('1100300','AA2222'),
        }
    }

site.register(Box, BoxRegistry)
开发者ID:tendenci,项目名称:tendenci,代码行数:22,代码来源:app_registry.py


示例6: ForumRegistry

from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import CoreRegistry, lazy_reverse
from tendenci.apps.forums.models import Forum


class ForumRegistry(CoreRegistry):
    version = _('1.0')
    author = _('Tendenci')
    author_email = '[email protected]'
    description = _("Forums")
    icon = '%simages/icons/forums-color-64x64.png' % settings.STATIC_URL

    url = {
        'list': lazy_reverse('pybb:index'),
    }

site.register(Forum, ForumRegistry)
开发者ID:goetzk,项目名称:tendenci,代码行数:19,代码来源:app_registry.py


示例7: PageRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import CoreRegistry, lazy_reverse
from tendenci.apps.pages.models import Page


class PageRegistry(CoreRegistry):
    version = '1.0'
    author = _('Schipul - The Web Marketing Company')
    author_email = '[email protected]'
    description = _('Create pages to display basic content throughout the site')
    icon = '%simages/icons/pages-color-64x64.png' % settings.STATIC_URL

    event_logs = {
        'page':{
            'base':('580000','009900'),
            'add':('581000','009933'),
            'edit':('582000','009966'),
            'delete':('583000','00CC00'),
            'search':('584000','00FF00'),
            'view':('585000','00FF33'),
            'print_view':('585001','00FF33')
        }
    }
    url = {
        'add': lazy_reverse('page.add'),
        'search': lazy_reverse('page.search'),
    }

site.register(Page, PageRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:29,代码来源:app_registry.py


示例8: StudyGroupRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import AppRegistry, lazy_reverse
from tendenci.apps.studygroups.models import StudyGroup


class StudyGroupRegistry(AppRegistry):
    version = '1.0'
    author = 'Schipul - The Web Marketing Company'
    author_email = '[email protected]'
    description = 'Create studygroups type of content'
    
    url = {
        'add': lazy_reverse('studygroups.add'),
        'search': lazy_reverse('studygroups.search'),
    }

site.register(StudyGroup, StudyGroupRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:17,代码来源:app_registry.py


示例9: JobRegistry


class JobRegistry(CoreRegistry):
    version = '1.0'
    author = _('Schipul - The Web Marketing Company')
    author_email = '[email protected]'
    description = _('Create and Manage a %(label)s Bank to offer free and paid postings' % {
        'label': get_setting('module', 'jobs', 'label')})
    icon = '%simages/icons/jobs-color-64x64.png' % settings.STATIC_URL

    # jobs - GREEN base - complement is DEEP RED
    event_logs = {
        'job':{
            'base':('250000','669900'),
            'add':('251000','669900'),
            'edit':('252000','666600'),
            'delete':('253000','66FF66'),
            'search':('254000','66FF33'),
            'view':('255000','00CC66'),
            'print_view':('255001','336600'),
        }
    }

    url = {
        'add': lazy_reverse('job.add'),
        'search': lazy_reverse('jobs'),
        'list': lazy_reverse('jobs')
    }

site.register(Job, JobRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:28,代码来源:app_registry.py


示例10: _

    author = _('Schipul - The Web Marketing Company')
    author_email = '[email protected]'
    description = _('Create help files, tutorials and more!')

    event_logs = {
        'help_file':{
            'base':('1000000','D11300'),
            'add':('1000100','D52500'),
            'edit':('1000200','DA3800'),
            'delete':('1000300','DF4A00'),
            'search':('1000400','E35D00'),
            'view':('1000500','E86F00'),
        },
        'help_file_topic':{
            'base':('1001000','A20900'),
            'add':('1001100','AC1300'),
            'edit':('1001200','B51C00'),
            'delete':('1001300','B51C00'),
            'search':('1001400','C72E00'),
            'view':('1001500','D13800'),
        }
    }

    url = {
        'search': lazy_reverse('help_files.search'),
        'add': lazy_reverse('admin:help_files_helpfile_add'),
        'list': lazy_reverse('help_files'),
    }

site.register(HelpFile, HelpFileRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:30,代码来源:app_registry.py


示例11: PaymentRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import LogRegistry, lazy_reverse
from tendenci.apps.payments.models import Payment


class PaymentRegistry(LogRegistry):
    # payments - PINK ORANGE base - complement is ????
    event_logs = {
        'payments':{
            'base':('280000', 'FF6666'), # base
            'add':('281000', 'FF6666'), # add
            'edit':('282000', 'FF6666'), # edit
            'delete':('283000', 'FF6666'), # delete
            'search':('284000', 'FF6666'), # search
            'view':('285000', 'FF6666'), # view
            'export':('286000', 'FF6666'), # export
            'edit_credit_card_approved':('282101', 'FF6666'), # Edit - Credit card approved
            'edit_credit_card_declined':('282102', 'FF6666'), # Edit - Credit card declined
        },
    }

site.register(Payment, PaymentRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:22,代码来源:app_registry.py


示例12: LocationRegistry

from tendenci.apps.registry.base import CoreRegistry, lazy_reverse
from tendenci.apps.locations.models import Location


class LocationRegistry(CoreRegistry):
    version = '1.0'
    author = _('Schipul - The Web Marketing Company')
    author_email = '[email protected]'
    description = _('A list of locations associated with your organization' \
        'Includes a search that sort by nearest location.')
    icon = '%simages/icons/locations-color-64x64.png' % settings.STATIC_URL

    event_logs = {
        'location':{
            'base':('830000', '669933'),
            'add':('831000', '669966'),
            'edit':('832000', '66CC66'),
            'delete':('833000', '66CC00'),
            'search':('834000', '66CC33'),
            'view':('835000', '66CC99'),
        }
    }

    url = {
        'add': lazy_reverse('location.add'),
        'search': lazy_reverse('location.search'),
        'list': lazy_reverse('locations'),
    }

site.register(Location, LocationRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:30,代码来源:app_registry.py


示例13: SpeakerRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import AppRegistry

from tendenci.apps.speakers.models import Speaker


class SpeakerRegistry(AppRegistry):
    version = '1.0'
    author = 'Schipul - The Web Marketing Company'
    author_email = '[email protected]'
    description = 'Create speaker biographies easily with photo,' \
                  ' position, tagline and more ..'
                  
    event_logs = {
        'speaker':{
            'base':('1070000','99EE66'),
            'add':('1070100','119933'),
            'edit':('1070200','EEDD55'),
            'delete':('1070300','AA2222'),
            'search':('1070400','CC55EE'),
            'view':('1070500','55AACC'),
        }
    }

site.register(Speaker, SpeakerRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:25,代码来源:app_registry.py


示例14: VideoRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import AppRegistry, lazy_reverse
from tendenci.apps.videos.models import Video


class VideoRegistry(AppRegistry):
    version = '1.0'
    author = 'Schipul - The Web Marketing Company'
    author_email = '[email protected]'
    description = 'Add video and display them in a grid format'

    event_logs = {
        'video':{
            'base':('1200000','993355'),
            'add':('1200100','119933'),
            'edit':('1200200','EEDD55'),
            'delete':('1200300','AA2222'),
            'search':('1200400','CC55EE'),
            'view':('1200500','55AACC'),
        }
    }

site.register(Video, VideoRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:23,代码来源:app_registry.py


示例15: InvoiceRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import CoreRegistry, lazy_reverse
from tendenci.apps.invoices.models import Invoice


class InvoiceRegistry(CoreRegistry):
    version = '1.0'
    author = _('Schipul - The Web Marketing Company')
    author_email = '[email protected]'
    description = _('Invoices for the entire system')
    icon = '%simages/icons/invoicing-color-64x64.png' % settings.STATIC_URL

    event_logs = {
        'invoices':{
            'base':('310000', '006666'), # base
            'add':('311000', '006666'), # add
            'edit':('312000', '006633'), # edit
            'delete':('313000', '006600'), # delete
            'search':('314000', '009900'), # search
            'view':('315000', '009933'), # view
            'adjusted':('311220', 'FF0000'), # invoice adjusted - RED!!!
        },
    }

    url = {
        'search': lazy_reverse('invoice.search'),
    }

site.register(Invoice, InvoiceRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:29,代码来源:app_registry.py


示例16: EmailBlockRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import LogRegistry
from tendenci.apps.email_blocks.models import EmailBlock

class EmailBlockRegistry(LogRegistry):
    event_logs = {
        'email_block':{
            'base':('135000', 'CC3300'), # base
            'add':('135100', 'CC3300'), # add
            'edit':('135300', 'CC3300'), # edit
            'delete':('135300', 'CC3300'), # delete
            'search':('135400', 'CC3300'), # search
            'view':('135550', 'CC3300'), # view
        },
    }

site.register(EmailBlock, EmailBlockRegistry)
开发者ID:tendenci,项目名称:tendenci,代码行数:17,代码来源:app_registry.py


示例17: EmailRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import LogRegistry, lazy_reverse
from tendenci.apps.emails.models import Email

class EmailRegistry(LogRegistry):
    event_logs = {
        'email':{
            'base':('130000', 'CC3300'), # base
            'add':('131000', 'CC3300'), # add
            'edit':('132000', 'CC3300'), # edit
            'delete':('133000', 'CC3300'), # delete
            'search':('134000', 'CC3300'), # search
            'view':('135000', 'CC3300'), # view
            'send_failure':('131100', 'CC3366'), # email send failure
            'send_success':('131101', 'CC3399'), # email send success
            'send_success_newsletter':('131102', 'CC33CC'), # email send success - newsletter
            'spam_detected':('130999', 'FF0000'), # email SPAM DETECTED!! (RED - this is important)
        },
    }

site.register(Email, EmailRegistry)

开发者ID:BIGGANI,项目名称:tendenci,代码行数:21,代码来源:app_registry.py


示例18: DiscountRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import CoreRegistry, lazy_reverse
from tendenci.apps.discounts.models import Discount
from django.utils.translation import ugettext_lazy as _


class DiscountRegistry(CoreRegistry):
    version = '1.0'
    author = _('Schipul - The Web Marketing Company')
    author_email = '[email protected]'
    description = _('Create and Manage Discount Codes for Your Events')

    url = {
        'add': lazy_reverse('discount.add'),
        'search': lazy_reverse('discounts'),
        'list': lazy_reverse('discounts'),
    }

site.register(Discount, DiscountRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:19,代码来源:app_registry.py


示例19: ResumeRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import CoreRegistry, lazy_reverse
from tendenci.apps.resumes.models import Resume

class ResumeRegistry(CoreRegistry):
    version = '1.0'
    author = _('Schipul - The Web Marketing Company')
    author_email = '[email protected]'
    description = _('Users can upload resumes to help with their careers')
    icon = '%simages/icons/resumes-color-64x64.png' % settings.STATIC_URL

    event_logs = {
        'resume':{
            'base':('350000','0099CC'),
            'add':('351000','0099CC'),
            'edit':('352000','0099CC'),
            'delete':('353000','0099CC'),
            'search':('354000','0099CC'),
            'view':('355000','0099CC'),
            'print_view':('355001', '0099CC'),
        }
    }

    url = {
        'add': lazy_reverse('resume.add'),
        'search': lazy_reverse('resumes'),
    }

site.register(Resume, ResumeRegistry)
开发者ID:BIGGANI,项目名称:tendenci,代码行数:29,代码来源:app_registry.py


示例20: MakePaymentRegistry

from tendenci.apps.registry.sites import site
from tendenci.apps.registry.base import LogRegistry
from tendenci.apps.make_payments.models import MakePayment

class MakePaymentRegistry(LogRegistry):
    event_logs = {
        'make_payment':{
            'base':('670000','66CC00'), # base
            'add':('671000','66CC00'), # add
            'edit':('672000','66CC33'), # edit
            'delete':('673000','66CC66'), # delete
            'search':('674000','66FF00'), # search
            'view':('675000','66FF33'), # view
        },
    }

site.register(MakePayment, MakePaymentRegistry)
开发者ID:tendenci,项目名称:tendenci,代码行数:17,代码来源:app_registry.py



注:本文中的tendenci.apps.registry.sites.site.register函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python utils.get_setting函数代码示例发布时间:2022-05-27
下一篇:
Python utils.update_perms_and_save函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap