Commit a6d257e2 authored by Aurel's avatar Aurel

don't export empty xml files (thanks to christophe)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8609 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f93c9e8
...@@ -1959,7 +1959,7 @@ class ActionTemplateItem(ObjectTemplateItem): ...@@ -1959,7 +1959,7 @@ class ActionTemplateItem(ObjectTemplateItem):
class PortalTypeRolesTemplateItem(BaseTemplateItem): class PortalTypeRolesTemplateItem(BaseTemplateItem):
def __init__(self, id_list, **kw): def __init__(self, id_list, **kw):
id_list = ['portal_type_roles/%s' % id for id in id_list] id_list = ['portal_type_roles/%s' % id for id in id_list if id != '']
BaseTemplateItem.__init__(self, id_list, **kw) BaseTemplateItem.__init__(self, id_list, **kw)
def build(self, context, **kw): def build(self, context, **kw):
...@@ -3445,7 +3445,7 @@ class MessageTranslationTemplateItem(BaseTemplateItem): ...@@ -3445,7 +3445,7 @@ class MessageTranslationTemplateItem(BaseTemplateItem):
class LocalRolesTemplateItem(BaseTemplateItem): class LocalRolesTemplateItem(BaseTemplateItem):
def __init__(self, id_list, **kw): def __init__(self, id_list, **kw):
id_list = ['local_roles/%s' % id for id in id_list] id_list = ['local_roles/%s' % id for id in id_list if id != '']
BaseTemplateItem.__init__(self, id_list, **kw) BaseTemplateItem.__init__(self, id_list, **kw)
def build(self, context, **kw): def build(self, context, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment