Commit 8a62a77d authored by Nicolas Delaby's avatar Nicolas Delaby

fix naming

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15044 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27b38d8c
...@@ -155,12 +155,12 @@ class Publication(Subscription): ...@@ -155,12 +155,12 @@ class Publication(Subscription):
def __init__(self, id, title, publication_url, destination_path, def __init__(self, id, title, publication_url, destination_path,
source_uri, query, xml_mapping, conduit, gpg_key, id_generator, source_uri, query, xml_mapping, conduit, gpg_key, id_generator,
gid_generator, media_type, auth_required, authentication_format, gid_generator, media_type, auth_required, authentication_format,
authentication_type, activity_enabeled): authentication_type, activity_enabled):
""" """
constructor constructor
""" """
self.id = id self.id = id
self.setActivityEnabeled(activity_enabeled) self.setActivityEnabled(activity_enabled)
self.publication_url = publication_url self.publication_url = publication_url
self.destination_path = destination_path self.destination_path = destination_path
self.setSourceURI(source_uri) self.setSourceURI(source_uri)
...@@ -179,17 +179,17 @@ class Publication(Subscription): ...@@ -179,17 +179,17 @@ class Publication(Subscription):
self.authentication_format = authentication_format self.authentication_format = authentication_format
self.authentication_type = authentication_type self.authentication_type = authentication_type
def getActivityEnabeled(self): def getActivityEnabled(self):
""" """
return true if we are using activity, false otherwise return true if we are using activity, false otherwise
""" """
return getattr(self, 'activity_enabeled', None) return getattr(self, 'activity_enabled', None)
def setActivityEnabeled(self, activity_enabeled): def setActivityEnabled(self, activity_enabled):
""" """
set if we are using activity or not set if we are using activity or not
""" """
self.activity_enabeled = activity_enabeled self.activity_enabled = activity_enabled
def getPublicationUrl(self): def getPublicationUrl(self):
""" """
......
...@@ -178,7 +178,7 @@ class SynchronizationTool( SubscriptionSynchronization, ...@@ -178,7 +178,7 @@ class SynchronizationTool( SubscriptionSynchronization,
destination_path, source_uri, query, xml_mapping, conduit, gpg_key, destination_path, source_uri, query, xml_mapping, conduit, gpg_key,
synchronization_id_generator=None, gid_generator=None, synchronization_id_generator=None, gid_generator=None,
media_type=None, auth_required=0, authentication_format='', media_type=None, auth_required=0, authentication_format='',
authentication_type='', RESPONSE=None, activity_enabeled = False): authentication_type='', RESPONSE=None, activity_enabled = False):
""" """
create a new publication create a new publication
""" """
...@@ -191,7 +191,7 @@ class SynchronizationTool( SubscriptionSynchronization, ...@@ -191,7 +191,7 @@ class SynchronizationTool( SubscriptionSynchronization,
destination_path, source_uri, query, xml_mapping, destination_path, source_uri, query, xml_mapping,
conduit, gpg_key, synchronization_id_generator, conduit, gpg_key, synchronization_id_generator,
gid_generator, media_type, auth_required, gid_generator, media_type, auth_required,
authentication_format, authentication_type, activity_enabeled) authentication_format, authentication_type, activity_enabled)
folder._setObject( new_id, pub ) folder._setObject( new_id, pub )
#if len(self.list_publications) == 0: #if len(self.list_publications) == 0:
# self.list_publications = PersistentMapping() # self.list_publications = PersistentMapping()
...@@ -235,13 +235,13 @@ class SynchronizationTool( SubscriptionSynchronization, ...@@ -235,13 +235,13 @@ class SynchronizationTool( SubscriptionSynchronization,
conduit, gpg_key, synchronization_id_generator, conduit, gpg_key, synchronization_id_generator,
gid_generator, media_type=None, auth_required=0, gid_generator, media_type=None, auth_required=0,
authentication_format='', authentication_type='', authentication_format='', authentication_type='',
RESPONSE=None, activity_enabeled=False): RESPONSE=None, activity_enabled=False):
""" """
modify a publication modify a publication
""" """
pub = self.getPublication(title) pub = self.getPublication(title)
pub.setTitle(title) pub.setTitle(title)
pub.setActivityEnabeled(activity_enabeled) pub.setActivityEnabled(activity_enabled)
pub.setPublicationUrl(publication_url) pub.setPublicationUrl(publication_url)
pub.setDestinationPath(destination_path) pub.setDestinationPath(destination_path)
pub.setSourceURI(source_uri) pub.setSourceURI(source_uri)
......
...@@ -53,8 +53,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -53,8 +53,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Use Activity Use Activity
</label></div> </label></div>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<input type="checkbox" name="activity_enabeled" value="1" <dtml-if expr="getActivityEnabeled()">CHECKED</dtml-if>> <input type="checkbox" name="activity_enabled" value="1" <dtml-if expr="getActivityEnabled()">CHECKED</dtml-if>>
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -50,7 +50,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -50,7 +50,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
</label></div> </label></div>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<input type="checkbox" name="activity_enabeled" value="1"> <input type="checkbox" name="activity_enabled" value="1">
</td> </td>
</tr> </tr>
<tr> <tr>
......
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