当前位置: 首页>>代码示例>>Python>>正文


Python url_patterns.url函数代码示例

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


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

示例1: djangoURLPatterns

 def djangoURLPatterns(self):
   return [
       url(r'accepted_orgs/%s$' % url_patterns.PROGRAM, self,
           name='gsoc_accepted_orgs'),
       url(r'program/accepted_orgs/%s$' % url_patterns.PROGRAM, self),
       django_url(r'^program/accepted_orgs/%s$' % url_patterns.PROGRAM, self),
   ]
开发者ID:adviti,项目名称:melange,代码行数:7,代码来源:accepted_orgs.py

示例2: djangoURLPatterns

 def djangoURLPatterns(self):
   return [
       url(r'document/edit/%s$' % gsoc_url_patterns.DOCUMENT, self,
           name='edit_gsoc_document'),
       url(r'document/edit/%s$' % gsoc_url_patterns.ORG_DOCUMENT, self,
           name='edit_gsoc_document'),
   ]
开发者ID:adviti,项目名称:melange,代码行数:7,代码来源:document.py

示例3: djangoURLPatterns

 def djangoURLPatterns(self):
   return [
        url(r'profile/organization/%s$' % url_patterns.PROGRAM,
        self, name='create_gsoc_org_profile'),
        url(r'profile/organization/%s$' % url_patterns.ORG,
        self, name='edit_gsoc_org_profile'),
   ]
开发者ID:adviti,项目名称:melange,代码行数:7,代码来源:org_profile.py

示例4: djangoURLPatterns

 def djangoURLPatterns(self):
   """See base.RequestHandler.getDjangoURLPatterns for specification."""
   return [
       url(r'admin/shipment_info/create/%s$' %
           soc_url_patterns.PROGRAM,
           self, name=url_names.GSOC_CREATE_SHIPMENT_INFO),
       url(r'admin/shipment_info/edit/%s' %
           url_patterns.SHIPMENT_INFO,
           self, name=url_names.GSOC_EDIT_SHIPMENT_INFO),
   ]
开发者ID:rhyolight,项目名称:nupic.son,代码行数:10,代码来源:shipment_tracking.py

示例5: djangoURLPatterns

  def djangoURLPatterns(self):
    """Returns the list of tuples for containing URL to view method mapping.
    """

    return [
        url(r'homepage/%s$' % url_patterns.PROGRAM, self,
            name='gsoc_homepage'),
        url(r'program/home/%s$' % url_patterns.PROGRAM, self),
        django_url(r'^program/home/%s$' % url_patterns.PROGRAM, self),
    ]
开发者ID:adviti,项目名称:melange,代码行数:10,代码来源:homepage.py

示例6: djangoURLPatterns

 def djangoURLPatterns(self):
   """See base.RequestHandler.djangoURLPatterns for specification."""
   # TODO(daniel): should we keep all these legacy patterns here?
   # TODO(daniel): remove '2' when old view is not ready
   return [
       soc_url_patterns.url(r'org2/%s$' % url_patterns.ORG, self,
           name=urls.UrlNames.ORG_HOME),
       soc_url_patterns.url(r'org2/show/%s$' % url_patterns.ORG, self),
       soc_url_patterns.url(r'org2/home/%s$' % url_patterns.ORG, self),
   ]
开发者ID:rhyolight,项目名称:nupic.son,代码行数:10,代码来源:org_home.py

示例7: djangoURLPatterns

  def djangoURLPatterns(self):
    """Returns the list of tuples for containing URL to view method mapping.
    """

    return [
        url(r'org/%s$' % url_patterns.ORG, self,
            name='gsoc_org_home'),
        url(r'org/show/%s$' % url_patterns.ORG, self),
        url(r'org/home/%s$' % url_patterns.ORG, self),
        django_url(r'^org/show/%s$' % url_patterns.ORG, self),
        django_url(r'^org/home/%s$' % url_patterns.ORG, self),
    ]
开发者ID:adviti,项目名称:melange,代码行数:12,代码来源:org_home.py

示例8: djangoURLPatterns

 def djangoURLPatterns(self):
   return [
       url(r'student_forms/enrollment/%s$' % url_patterns.PROGRAM,
           self, name='gsoc_enrollment_form',
           kwargs=dict(form='enrollment', admin=False)),
       url(r'student_forms/tax/%s$' % url_patterns.PROGRAM,
           self, name='gsoc_tax_form',
           kwargs=dict(form='tax', admin=False)),
       url(r'student_forms/admin/enrollment/%s$' % url_patterns.PROFILE,
           self, name='gsoc_enrollment_form_admin',
           kwargs=dict(form='enrollment', admin=True)),
       url(r'student_forms/admin/tax/%s$' % url_patterns.PROFILE,
           self, name='gsoc_tax_form_admin',
           kwargs=dict(form='tax', admin=True)),
   ]
开发者ID:adviti,项目名称:melange,代码行数:15,代码来源:student_forms.py

示例9: djangoURLPatterns

 def djangoURLPatterns(self):
   """See base.GSoCRequestHandler.djangoURLPatterns for specification."""
   return [
       url_patterns.url(
           r'program/schools/download/%s$' % soc_url_patterns.PROGRAM,
           self, name=url_names.GSOC_PROGRAM_DOWNLOAD_SCHOOLS),
   ]
开发者ID:rhyolight,项目名称:nupic.son,代码行数:7,代码来源:program.py

示例10: djangoURLPatterns

 def djangoURLPatterns(self):
   """Returns the URL patterns for the task in this module.
   """
   patterns = [
       url(r'gdata/proposal/sync$', self, name='proposal_sync'),
   ]
   return patterns
开发者ID:adviti,项目名称:melange,代码行数:7,代码来源:proposal.py

示例11: djangoURLPatterns

 def djangoURLPatterns(self):
     """See base.GSoCRequestHandler.djangoURLPatterns for specification."""
     return [
         soc_url_patterns.url(
             r"org/application/list/%s$" % url_patterns.PROGRAM, self, name=urls.UrlNames.ORG_APPLICATION_LIST
         )
     ]
开发者ID:rhyolight,项目名称:nupic.son,代码行数:7,代码来源:org_app.py

示例12: djangoURLPatterns

  def djangoURLPatterns(self):
    """Returns the list of tuples for containing URL to view method mapping."""

    return [
        url(r'admin/proposals/accept/%s$' % url_patterns.PROGRAM, self,
            name='gsoc_admin_accept_proposals')
    ]
开发者ID:rhyolight,项目名称:nupic.son,代码行数:7,代码来源:accept_withdraw_projects.py

示例13: djangoURLPatterns

 def djangoURLPatterns(self):
   """See base.djangoURLPatterns for specification."""
   return [
       soc_url_patterns.url(
           r'project/manage/admin/%s$' % url_patterns.USER_ID,
           self, name=urls.UrlNames.PROJECT_MANAGE_ADMIN)
   ]
开发者ID:rhyolight,项目名称:nupic.son,代码行数:7,代码来源:project_manage.py

示例14: djangoURLPatterns

  def djangoURLPatterns(self):
    """Returns the list of tuples for containing URL to view method mapping."""

    return [
        url(r'project/%s$' % url_patterns.USER_ID, self,
            name=url_names.GSOC_PROJECT_DETAILS)
    ]
开发者ID:rhyolight,项目名称:nupic.son,代码行数:7,代码来源:project_details.py

示例15: djangoURLPatterns

  def djangoURLPatterns(self):
    """Returns the list of tuples for containing URL to view method mapping.
    """

    return [
        url(r'project/update/%s$' % url_patterns.PROJECT, self,
            name='gsoc_update_project')
    ]
开发者ID:adviti,项目名称:melange,代码行数:8,代码来源:project_details.py


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