${entries[field]}
% if help[field] :
- ${fieldhelp( help[field])}
% endif
% endfor
zwiki_version
${zwiki.VERSION}
%def>
<%def name="form_systemconfig( u, entries, action )">
<%
if set( infofields + cnffields ) != set( entries ) :
raise Exception( 'Mismatch in system fields' )
help = {
'welcomestring' :
"""This string will be displayed on the page bar of site's
homepage""",
'specialtags' :
"""Some tags are special, in the sense that they will be
interpreted by the application""",
'projteamtypes' :
"""Registered users can be part of a project only via a
team. Add team types for all the projects hosted under
this site, non-members denote registered users
who are not part of the project""",
'tickettypes' :
"""Tickets can have type, it gives an idea about the
ticket""",
'ticketseverity':
"""Ticket severity should indicate at what priority it
should be addressed. Note that, sometimes important
ticket need not be urgent""",
'ticketstatus' :
"""And this is how a ticket is tracked, typically a ticket
begins its life as 'new', travels through one of
its different states, that is defined here and finally moves on
to a resolved state.""",
'ticketresolv' :
"""Should be a sub-set of ticket-status list, and
indicates that a ticket is resolved upon moving to this
state.""",
'wikitypes' :
"""Documents can also can have types, define them here""",
'def_wikitype' :
"""Should be present in the list of `wikitypes`. On creating
a wiki page, it is always marked with the default
type""",
'reviewactions' :
"""Authors must take actions on review comments,
define the type of actions here""",
'reviewnatures' :
"""Nature of review comment. Sometimes, marking a comment
as `cosmetic` can avoid lot of debate.""",
'vcstypes' :
"""Supported list of version control systems, integratable
with your site.""",
'googlemaps' :
"""
sign-up
google map key for your site and copy the key here. If
left empty, google-maps will not be enabled.""",
'strictauth' :
"""Setting this to `True` will completely restrict
anonymous user. This feature is still evolving""",
'regrbyinvite' :
"""By default anybody can register in the site. In case
this is not desirable, set `regrbyinvite` to `True`""",
'invitebyall' :
"""If `regrbyinvite` is set to `True`, `invitebyall`
defines who can invite new users. By default, only site
administrator can invite, if set to `True` any registered
user under this site can invite new users""",
}
%>
All the confguration fields here pertains to entire site,
applicable to all projects created in this site
%def>
<%def name="form_editsw( u, sw, action )">
%def>
## ------------------------- Permission Forms -----------------------------
<%def name="form_createpg( u, permnames, action )">
<%
pg_help = 'small cased, 2 to max %s characters. ' % h.LEN_NAME
%>
%def>
<%def name="form_updatepg( u, action_pg, action_addpn, action_delpn,
pgroups=[], defpg='', perms=[], x_perms=[] )">
<%
pg_help = ( 'Minimum 3 characters to max %s characters.' + \
'With all characters in small case.' ) % h.LEN_NAME
%>
Select group -
${select( name='pglist', id='pglist', options=pgroups, opt_selected=defpg )}
%def>
## --------------------------- User Forms ---------------------------------
<%def name="form_userreg( action, url_captcha )">
<%
un_help = 'All small case, between 3 characters to %s characters.' % h.LEN_NAME
em_help = 'Your communication email id.'
pw_help = 'Use a password of minimum 4 characters.'
%>
%def>
<%def name="form_accountinfo( u, action )">
<%
uinfo = u.userinfo
fliparg = lambda x : x and x or ''
em_help = 'Your communication email id.'
up_help = 'Comma separated list of user panes'
%>
%def>
<%def name="form_updtpass( u, action )">
<%
pw_help = 'Should be a minimum of 4 character password.'
%>
%def>
<%def name="form_add_userrelations( u, reltypes, action )">
%def>
<%def name="form_approve_userrelations( u, action )">
None
%def>
<%def name="form_del_userrelations( u, reltypes, action )">
%def>
<%def name="form_user_enable( u, action, dusers )">
%def>
<%def name="form_user_disable( u, action , eusers)">
%def>
<%def name="form_project_enable( u, action, dprojects )">
%def>
<%def name="form_project_disable( u, action, eprojects )">
%def>
<%def name="form_add_userpermissions( u, usernames, action, defuser, x_pgroups )">
%def>
<%def name="form_del_userpermissions( u, usernames, action, defuser, pgroups )">
%def>
<%def name="form_inviteuser( u, action )">
%def>
## ------------------------- License Forms --------------------------------
<%def name="form_licenselist( lics, default='' )">
<%
lics = [ [ '', '--Select-License--' ] ] + lics
default = default or '--Select-License--'
%>
${select( name='viewlicense', id='viewlicense', options=lics, opt_selected=default )}
%def>
<%def name="form_createlicense( u, action )">
<%
ln_help = 'licensename must be unique'
sm_help = 'one line summary'
src_help = 'license originator'
%>
%def>
<%def name="form_updatelicense_h( u, l, action )">
<%
ln_help = 'licensename must be unique'
sm_help = 'one line summary'
src_help = 'license originator'
%>
%def>
<%def name="form_removelic_h( u , action )">
%def>
#### --------------------------Project Forms --------------------------------
<%def name="form_createproject( u, licensenames, projectnames, action )">
<%
pn_help = '"projectname" cannot be changed later'
sm_help = 'one line summary'
%>
%def>
<%def name="form_projectinfo( u, p, licensenames, usernames, licurl, action )">
<%
sm_help = 'one line summary'
em_help = 'if left empty, your registered email-id will be used.'
ml_help = 'project mailing-list as comma separated values'
ir_help = 'project irc-channels as comma separated values'
pinfo = p.project_info
mailinglists = ', '.join([ m.mailing_list for m in p.mailinglists ])
ircchannels = ', '.join([ i.ircchannel for i in p.ircchannels ])
%>
%def>
<%def name="form_createpcomp( u, p, pusers, action )">
<%
cn_help = 'Component name must be unique'
%>
%def>
<%def name="form_updatepcomp( u, p, pusers, pcomplist, action )">
<%
cn_help = 'component name must be unique'
%>
%def>
<%def name="form_rmpcomp( u, p, action )">
%def>
<%def name="form_createmstn( u, p, action )">
<%
mn_help = 'milestone name must be unique'
%>
%def>
<%def name="form_updatemstn( u, p, mstnlist, action )">
<%
mn_help = 'milestone name must be unique'
%>
%def>
<%def name="form_rmmstn( u, p, action )">
%def>
<%def name="form_createver( u, p, action )">
<%
vn_help = 'version name must be unique'
%>
%def>
<%def name="form_updatever( u, p, verlist, action )">
<%
vn_help = 'version name must be unique'
%>