예제 #1
0
 def __init__(self):
     super(self.__class__, self).__init__()
     self.register_option(
         '--organization',
         dest='organization',
         help='Organization where created user will belong',
         required=True)
     self.register_option(
         '--username',
         dest='username',
         help='Username; it will have organization.tld appended',
         required=True)
     self.register_option(
         '--email',
         dest='email',
         help='E-mail used to identify and contact user',
         required=True)
     self.register_option(
         '--firstname',
         dest='first_name',
         help='')
     self.register_option(
         '--lastname',
         dest='last_name',
         help='')
     self.register_option(
         '--pid',
         dest='pid',
         help='')
     registry.apply_filter('createuser_cli_options', command=self)
 def __init__(self):
     super(self.__class__, self).__init__()
     self.register_option(
         '--domain',
         dest='domain',
         help='Organization\'s domain',
         required=True)
     self.register_option(
         '--name',
         dest='name',
         help='Public name for organization',
         required=True)
     registry.apply_filter('createorganization_cli_options', command=self)