diff --git a/addons/base_module_publish/__terp__.py b/addons/base_module_publish/__terp__.py index adb9d554de9..632c09dcfad 100644 --- a/addons/base_module_publish/__terp__.py +++ b/addons/base_module_publish/__terp__.py @@ -5,15 +5,15 @@ "website" : "http://tinyerp.com", "category" : "Generic Modules/Base", "description": """ - This module can be used by developpers to automatically publish their modules - in a few click to the following websites: - * http://TinyERP.com, section module - * http://TinyForge.org - * PyPi, The python offical repository - * http://Freshmeat.net +This module can be used by developpers to automatically publish their modules +in a few click to the following websites: +* http://TinyERP.com, section module +* http://TinyForge.org +* PyPi, The python offical repository +* http://Freshmeat.net - It adds a button "Publish module" on each module, so that you simply have - to call this button when you want to release a new version of your module. +It adds a button "Publish module" on each module, so that you simply have +to call this button when you want to release a new version of your module. """, "depends" : ["base"], "init_xml" : [ ], diff --git a/addons/base_module_publish/wizard/base_module_publish.py b/addons/base_module_publish/wizard/base_module_publish.py index 90f67858aec..8edf08f90d8 100644 --- a/addons/base_module_publish/wizard/base_module_publish.py +++ b/addons/base_module_publish/wizard/base_module_publish.py @@ -29,6 +29,7 @@ import time import wizard import osv import pooler +import urllib intro_form = '''
@@ -50,15 +51,35 @@ Thank you for contributing ! """}, } +def _get_selection(*Args): + a = urllib.urlopen('http://www.tinyerp.com/mtree_interface.php') + contents = a.read() + content = filter(None, contents.split('\n')) + return map(lambda x:x.split('='), content) + + check_form = ''' - - - - - - + + + + + + + + + + + + + + + ''' check_fields = { @@ -67,35 +88,11 @@ check_fields = { 'author': {'string':'Author', 'type':'char', 'size':128, 'readonly':True}, 'website': {'string':'Website', 'type':'char', 'size':200, 'readonly':True}, 'url': {'string':'Download URL', 'type':'char', 'size':200, 'readonly':True}, + 'image': {'string':'Image file', 'type':'binary'}, 'description': {'string':'Description', 'type':'text', 'readonly':True}, 'version': {'string':'Version', 'type':'char', 'readonly':True}, -} - - -upload_info_form = ''' -
- -