provide a new RichString attribute type
The follwing declaration:
class Card(EntityType):
content = RichString(fulltextindexed=True, default_format='text/rest')
is equivalent to :
class Card(EntityType):
content_format = String(meta=True, internationalizable=True,
default='text/rest', constraints=[format_constraint])
content = String(fulltextindexed=True)
"""cubicweb-ctl commands and command handlers common to twisted/modpythonweb configuration:organization: Logilab:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr"""__docformat__="restructuredtext en"fromcubicweb.toolsutilsimportCommandHandler,confirmclassWebCreateHandler(CommandHandler):cmdname='create'defbootstrap(self,cubes,inputlevel=0):"""bootstrap this configuration"""print'** generic web configuration'config=self.configifconfig.repo_method=='pyro':printprint'** repository server configuration'print'-'*72config.input_config('pyro-client',inputlevel)ifconfirm('allow anonymous access',False):config.global_set_option('anonymous-user','anon')config.global_set_option('anonymous-password','anon')defpostcreate(self):"""hooks called once application's initialization has been completed"""