def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
     self.actions = {
         'project_watchers':'update',
     }
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
     self.actions = {
         'project_watchers': 'update',
     }
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = self.__doc__
     self.icon_dir = conf.get('multiproject-projects', 'icon_dir')
     self.projects_dir = conf.get('multiproject', 'sys_projects_root')
     self.content_types = {
         'image/png': 'png',
         'image/x-png': 'png',
         'image/bmp': 'bmp',
         'image/tiff': 'tiff',
         'image/pjpeg': 'jpeg',
         'image/jpeg': 'jpeg',
         'image/jpg': 'jpeg',
         'image/gif': 'gif',
         'image/xml+svg': 'svg',
         'image/svg+xml': 'svg',
         'image/x-icon': 'ico',
         'application/octet-stream': 'ext'
     }
     # Parse option value using custom Trac option: DimensionOption
     value = conf.get('multiproject-projects', 'icon_size', '64x64')
     # TODO: Find proper way to read config values outside of component
     self.icon_size = DimensionOption(
         section='multiproject-projects',
         name='icon_size')._parse_dimension(value)
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = (
         "Migration updates published date according to the is_published_project, \n"
         "i.e., does the anonymous user have permissions described in public_anon_group."
     )
     self.pretend_to_be_not_applied = False
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
     self.actions = [
         ('file_copied', 'create', 'Files'),
         ('release_copied', 'create', 'Releases'),
         ('release_moved', 'update', 'Releases'),
         ('release_deleted', 'delete', 'Releases'),
     ]
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
     self.actions = [
             ('file_copied', 'create', 'Files'),
             ('release_copied', 'create', 'Releases'),
             ('release_moved', 'update', 'Releases'),
             ('release_deleted', 'delete', 'Releases'),
         ]
Пример #7
0
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
     self.actions = {
         'project_created': 'create',
         'project_set_public': 'update',
         'project_set_private': 'update',
         'project_archived': 'update',
         'project_deleted': 'delete',
     }
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
     self.actions = {
         'project_created':'create',
         'project_set_public':'update',
         'project_set_private':'update',
         'project_archived':'update',
         'project_deleted':'delete',
     }
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split(".")[-1]
     self.description = self.__doc__
     self.icon_dir = conf.get("multiproject-projects", "icon_dir")
     self.projects_dir = conf.get("multiproject", "sys_projects_root")
     self.content_types = {
         "image/png": "png",
         "image/x-png": "png",
         "image/bmp": "bmp",
         "image/tiff": "tiff",
         "image/pjpeg": "jpeg",
         "image/jpeg": "jpeg",
         "image/jpg": "jpeg",
         "image/gif": "gif",
         "image/xml+svg": "svg",
         "image/svg+xml": "svg",
         "image/x-icon": "ico",
         "application/octet-stream": "ext",
     }
     # Parse option value using custom Trac option: DimensionOption
     value = conf.get("multiproject-projects", "icon_size", "64x64")
     # TODO: Find proper way to read config values outside of component
     self.icon_size = DimensionOption(section="multiproject-projects", name="icon_size")._parse_dimension(value)
Пример #10
0
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = "Change authentication method datatype from enum to varchar"
Пример #11
0
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = "Change wiki start time to be utimestamp: multiply with 10**6 those less than 20 * 10**9"
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
     self._was_downgraded = False
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = self.__doc__
     self.pretend_to_be_not_applied = False
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split(".")[-1]
     self.description = self.__doc__
     self.pretend_to_be_not_applied = False
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
     self._was_downgraded = False
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = "Change wiki start time to be utimestamp: multiply with 10**6 those less than 20 * 10**9"
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
     self._pretend_not_applied = False
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = __doc__
 def __init__(self):
     MigrateBase.__init__(self)
     self.id = __name__.split('.')[-1]
     self.description = ("Migration updates published date according to the is_published_project, \n"
                         "i.e., does the anonymous user have permissions described in public_anon_group.")
     self.pretend_to_be_not_applied = False