本文整理汇总了Python中tendenci.core.registry.site.register函数的典型用法代码示例。如果您正苦于以下问题:Python register函数的具体用法?Python register怎么用?Python register使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了register函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: CorpMembershipRegistry
class CorpMembershipRegistry(PeopleRegistry):
version = '1.0'
author = 'Schipul - The Web Marketing Company'
author_email = '[email protected]'
description = 'Corporate membership management application.'
icon = '%simages/icons/corporate-membership-color-64x64.png' % settings.STATIC_URL
event_logs = {
'corporate_membership':{
'base':('680000','3300FF'),
'add':('681000','3300FF'),
'renew':('681001','471DEF'),
'edit':('682000','1F85FF'),
'join_approval':('682001','4D29DF'),
'renewal_approval':('682002','5233CF'),
'join_disapproval':('682003','563BBF'),
'renewal_disapproval':('682004','7A6DAF'),
'delete':('683000','B0A8CF'),
'import':('689005','47A0BF'),
}
}
url = {
'add': lazy_reverse('corpmembership.add'),
'search': lazy_reverse('corpmembership.search'),
# 'list': lazy_reverse('corpmembership.search')
}
site.register(CorpMembership, CorpMembershipRegistry)
开发者ID:DeepInTheCode,项目名称:tendenci,代码行数:29,代码来源:app_registry.py
示例2: 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:BillTheBest,项目名称:tendenci,代码行数:28,代码来源:app_registry.py
示例3: PaymentRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import LogRegistry, lazy_reverse
from tendenci.core.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:droidterry,项目名称:tendenci,代码行数:22,代码来源:app_registry.py
示例4: lazy_reverse
'edit':('662000','FF3366'),
'delete':('663000','FF9933'),
'search':('664000','FF6666'),
'view':('665000','FF9966'),
},
'membership_entries':{
'base':('1080000','FF6633'),
'add':('1081000','FF6633'),
'search':('1084000','FF6633'),
'view':('1085000','FF6633'),
'approved':('1082101','FF6633'),
'disapproved':('1082102','FF6633'),
},
'membership notice':{
'base':('900000','FFFF00'),
'add':('901000','FFDB00'),
'edit':('902000','FFB600'),
'delete':('903000','FF9200'),
'search':('904000','FF6D00'),
'view':('905000','FF4900'),
'print_view':('906000','FF2400'),
}
}
url = {
'search': lazy_reverse('membership.search'),
}
site.register(Membership, MembershipRegistry)
开发者ID:eloyz,项目名称:tendenci,代码行数:29,代码来源:app_registry.py
示例5: NewsRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import CoreRegistry, lazy_reverse
from tendenci.addons.news.models import News
class NewsRegistry(CoreRegistry):
version = '1.0'
author = 'Schipul - The Web Marketing Company'
author_email = '[email protected]'
description = 'Create news to let your vistors keep current'
icon = '%simages/icons/news-color-64x64.png' % settings.STATIC_URL
event_logs = {
'news':{
'base':('305000', 'FF0033'),
'add':('305100', 'FF0033'),
'edit':('305200', 'FF0033'),
'delete':('305300', 'FF0033'),
'search':('305400', 'FF0033'),
'view':('305500', '8C0000'),
'print_view':('305501', '8C0000'),
}
}
url = {
'add': lazy_reverse('news.add'),
'search': lazy_reverse('news'),
}
site.register(News, NewsRegistry)
开发者ID:DeepInTheCode,项目名称:tendenci,代码行数:30,代码来源:app_registry.py
示例6: ContactRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import LogRegistry, lazy_reverse
from tendenci.apps.contacts.models import Contact
class ContactRegistry(LogRegistry):
# contacts - TEAL/LIME-GREEN base
event_logs = {
'contact':{
'add_with_new_user':('125114', '33CCCC'), # add - contact form submitted / new user added
'add_with_existing_user':('125115', '0066CC'), # add - contact form submitted / user already exists
},
}
site.register(Contact, ContactRegistry)
开发者ID:BillTheBest,项目名称:tendenci,代码行数:14,代码来源:app_registry.py
示例7: RedirectRegistry
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from tendenci.core.registry import site
from tendenci.core.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]'
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:BillTheBest,项目名称:tendenci,代码行数:21,代码来源:app_registry.py
示例8: LocationRegistry
from tendenci.core.registry.base import CoreRegistry, lazy_reverse
from tendenci.addons.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:DeepInTheCode,项目名称:tendenci,代码行数:30,代码来源:app_registry.py
示例9: ResumeRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import CoreRegistry, lazy_reverse
from tendenci.addons.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:DeepInTheCode,项目名称:tendenci,代码行数:29,代码来源:app_registry.py
示例10: EntityRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import LogRegistry, lazy_reverse
from tendenci.apps.entities.models import Entity
class EntityRegistry(LogRegistry):
# entities - TURQUOISE base - complement is ?????
event_logs = {
'entity':{
'base':('290000', '00FFCC'),
'add':('291000', '00FFCC'),
'edit':('292000', '33FFCC'),
'delete':('293000', '33FF66'),
'search':('294000', '66FFCC'),
'view':('295000', '99FFCC'),
},
}
site.register(Entity, EntityRegistry)
开发者ID:BillTheBest,项目名称:tendenci,代码行数:18,代码来源:app_registry.py
示例11: lazy_reverse
'delete':('663000','FF9933'),
'search':('664000','FF6666'),
'view':('665000','FF9966'),
},
'membership_entries':{
'base':('1080000','FF6633'),
'add':('1081000','FF6633'),
'search':('1084000','FF6633'),
'view':('1085000','FF6633'),
'approved':('1082101','FF6633'),
'disapproved':('1082102','FF6633'),
},
'membership notice':{
'base':('900000','FFFF00'),
'add':('901000','FFDB00'),
'edit':('902000','FFB600'),
'delete':('903000','FF9200'),
'search':('904000','FF6D00'),
'view':('905000','FF4900'),
'print_view':('906000','FF2400'),
}
}
url = {
'add': lazy_reverse('admin:memberships_membershipapp_changelist'),
'list': lazy_reverse('membership.index'),
'search': lazy_reverse('membership.search'),
}
site.register(MembershipDefault, MembershipRegistry)
开发者ID:BillTheBest,项目名称:tendenci,代码行数:30,代码来源:app_registry.py
示例12: DirectoryRegistry
from tendenci.addons.directories.models import Directory
class DirectoryRegistry(CoreRegistry):
version = '1.0'
author = 'Schipul - The Web Marketing Company'
author_email = '[email protected]'
description = 'Create directories to list businesses'
icon = '%simages/icons/directories-color-64x64.png' % settings.STATIC_URL
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:warhotdog,项目名称:tendenci,代码行数:30,代码来源:app_registry.py
示例13: ProfileRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import PeopleRegistry, lazy_reverse
from tendenci.apps.profiles.models import Profile
class ProfileRegistry(PeopleRegistry):
version = '1.0'
author = _('Schipul - The Web Marketing Company')
author_email = '[email protected]'
description = _('User Profiles.')
icon = '%simages/icons/users-color-64x64.png' % settings.STATIC_URL
event_logs = {
'profile':{
'base':('120000','3300FF'),
'add':('121000','3300FF'),
'edit':('122000', '3333FF'),
'delete':('123000', '3366FF'),
'search':('124000', '3366FF'),
'view':('125000', '3399FF'),
},
}
url = {
'search': lazy_reverse('profile.search'),
'add': lazy_reverse('profile.add'),
'settings': lazy_reverse('settings.index', args=['module','users']),
}
site.register(Profile, ProfileRegistry)
开发者ID:BillTheBest,项目名称:tendenci,代码行数:30,代码来源:app_registry.py
示例14: EmailRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import LogRegistry, lazy_reverse
from tendenci.core.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:DeepInTheCode,项目名称:tendenci,代码行数:21,代码来源:app_registry.py
示例15: EmailBlockRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import LogRegistry, lazy_reverse
from tendenci.core.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:droidterry,项目名称:tendenci,代码行数:17,代码来源:app_registry.py
示例16: IndustryRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import CoreRegistry, lazy_reverse
from tendenci.addons.industries.models import Industry
class IndustryRegistry(CoreRegistry):
version = '1.0'
author = 'Schipul - The Web Marketing Company'
author_email = '[email protected]'
description = 'A list of industries'
#icon = '%simages/icons/industries-color-64x64.png' % settings.STATIC_URL
event_logs = {
'industry': {
'base': ('930000', '003399'),
'add': ('931000', '003366'),
'edit': ('932000', '003333'),
'delete': ('933000', '003300'),
'search': ('934000', '0033cc'),
'view': ('935000', '0033ee'),
}
}
# url = {
# 'add': lazy_reverse('industry.add'),
# 'search': lazy_reverse('industry.search'),
# 'list': lazy_reverse('industries'),
# }
site.register(Industry, IndustryRegistry)
开发者ID:BillTheBest,项目名称:tendenci,代码行数:30,代码来源:app_registry.py
示例17: CaseStudyRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import AppRegistry, lazy_reverse
from addons.case_studies.models import CaseStudy
class CaseStudyRegistry(AppRegistry):
version = "1.0"
author = "Schipul - The Web Marketing Company"
author_email = "[email protected]"
description = "Create case studies of clients"
event_logs = {
"case_study": {
"base": ("1000000", "EE8877"),
"add": ("1000100", "119933"),
"edit": ("1000200", "EEDD55"),
"delete": ("1000300", "AA2222"),
"search": ("1000400", "CC55EE"),
"view": ("1000500", "55AACC"),
}
}
site.register(CaseStudy, CaseStudyRegistry)
开发者ID:fbates,项目名称:tendenci-site,代码行数:24,代码来源:app_registry.py
示例18: CorporateMembershipRegistry
class CorporateMembershipRegistry(PeopleRegistry):
version = '1.0'
author = 'Schipul - The Web Marketing Company'
author_email = '[email protected]'
description = 'Corporate membership management application.'
icon = '%simages/icons/corporate-membership-color-64x64.png' % settings.STATIC_URL
event_logs = {
'corporate_membership':{
'base':('680000','3300FF'),
'add':('681000','3300FF'),
'renew':('681001','471DEF'),
'edit':('682000','1F85FF'),
'join_approval':('682001','4D29DF'),
'renewal_approval':('682002','5233CF'),
'join_disapproval':('682003','563BBF'),
'renewal_disapproval':('682004','7A6DAF'),
'delete':('683000','B0A8CF'),
'import':('689005','47A0BF'),
}
}
url = {
'search': lazy_reverse('corp_memb.search'),
'list': lazy_reverse('corp_memb.list')
}
site.register(CorporateMembership, CorporateMembershipRegistry)
开发者ID:eloyz,项目名称:tendenci,代码行数:28,代码来源:app_registry.py
示例19: lazy_reverse
author = 'Schipul - The Web Marketing Company'
author_email = '[email protected]'
description = 'User Groups.'
icon = '%simages/icons/groups-color-64x64.png' % settings.STATIC_URL
event_logs = {
'group':{
'base':('160000','339999'),
'add':('161000','339999'),
'edit':('162000','339999'),
'delete':('163000','339999'),
'search':('164000','339999'),
'view':('165000','339999'),
},
'groupmembership':{
'base':('220000','00CCFF'),
'add':('221000','00CCFF'),
'edit':('222000','00CCFF'),
'delete':('223000','00CCFF'),
'search':('224000','00CCFF'),
'view':('225000','00CCFF'),
}
}
url = {
'search': lazy_reverse('groups'),
'add': lazy_reverse('group.add'),
}
site.register(Group, GroupRegistry)
开发者ID:warhotdog,项目名称:tendenci,代码行数:30,代码来源:app_registry.py
示例20: GuideRegistry
from tendenci.core.registry import site
from tendenci.core.registry.base import LogRegistry, lazy_reverse
from tendenci.addons.tendenci_guide.models import Guide
class GuideRegistry(LogRegistry):
event_logs = {
'tendenci_guide':{
'edit':('1002000', 'A20900'), # base
'add':('1002100', '119933'), # add
'edit':('1002200', 'EEDD55'), # edit
'delete':('1002300', 'AA2222'), # delete
'search':('1002400', 'CC55EE'), # search
'detail':('1002500', '55AACC'), # detail
}
}
site.register(Guide, GuideRegistry)
开发者ID:BillTheBest,项目名称:tendenci,代码行数:17,代码来源:app_registry.py
注:本文中的tendenci.core.registry.site.register函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论