[Zope-CVS] CVS: FremdProdukte/ZopeProdukte/CMFCollector - Collector.py:1.2 CollectorIssue.py:1.2
Andreas Jung
andreas@digicool.com
Tue, 1 Oct 2002 09:07:06 -0400
Update of /cvs-repository/FremdProdukte/ZopeProdukte/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv20507
Modified Files:
Collector.py CollectorIssue.py
Log Message:
i18n
=== FremdProdukte/ZopeProdukte/CMFCollector/Collector.py 1.1.1.1 => 1.2 ===
--- FremdProdukte/ZopeProdukte/CMFCollector/Collector.py:1.1.1.1 Tue Oct 1 03:00:38 2002
+++ FremdProdukte/ZopeProdukte/CMFCollector/Collector.py Tue Oct 1 09:07:05 2002
@@ -185,6 +185,9 @@
topic=None,
importance=None,
classification=None,
+ contact=None,
+ deadline=None,
+ hours_required=None,
version_info=None,
assignees=None,
file=None, fileid=None, filetype=None):
@@ -201,6 +204,9 @@
submitter_email=submitter_email,
kibitzers=kibitzers,
topic=topic,
+ deadline=deadline,
+ hours_required=hours_required,
+ contact=contact,
classification=classification,
security_related=security_related,
importance=importance,
=== FremdProdukte/ZopeProdukte/CMFCollector/CollectorIssue.py 1.1.1.1 => 1.2 ===
--- FremdProdukte/ZopeProdukte/CMFCollector/CollectorIssue.py:1.1.1.1 Tue Oct 1 03:00:38 2002
+++ FremdProdukte/ZopeProdukte/CMFCollector/CollectorIssue.py Tue Oct 1 09:07:05 2002
@@ -116,6 +116,9 @@
creation_date=None, modification_date=None,
effective_date=None, expiration_date=None,
assignees=None,
+ deadline=None,
+ hours_required=None,
+ contact=None,
file=None, fileid=None, filetype=None,
invisible=0):
""" """
@@ -143,6 +146,9 @@
self.importance = importance
self.resolution = resolution
self.version_info = version_info
+ self.contact = contact
+ self.deadline = deadline
+ self.hours_required = hours_required
self.portal_type = 'Collector Issue'
# 'contained' is for stuff that needs collector acquisition wrapping.
@@ -158,6 +164,9 @@
modification_date = self.creation_date
self.modification_date = modification_date
+
+ print self.contact
+
def _set_submitter_specs(self, submitter_id,
submitter_name, submitter_email):
"""Given an id, set the name and email as warranted."""
@@ -235,6 +244,9 @@
version_info=None,
stealthy=None,
comment=None,
+ contact=None,
+ hours_required=None,
+ deadline=None,
text=None):
"""Update the explicitly passed fields."""
@@ -274,6 +286,23 @@
changes.append('revised version_info')
self.version_info = version_info
+
+ if changed('deadline', deadline):
+ changes.append('deadline(%s => %s)'
+ % (self.deadline.strftime("%d.%m.%Y"), deadline.strftime("%d.%m.%Y")))
+ self.deadline = deadline
+
+ if changed('contact', contact):
+ changes.append('contact(%s => %s)'
+ % (self.contact, contact))
+ self.contact = contact
+
+ if changed('hours_required', hours_required):
+ changes.append('hours_required(%s => %s)'
+ % (self.hours_required, hours_required))
+ self.hours_required = hours_required
+
+
if comment:
changes.append('new comment')
@@ -293,7 +322,7 @@
transcript.edit(self.TRANSCRIPT_FORMAT,
self._entry_header('Edit', username)
+ "\n\n"
- + " Changes: " + ", ".join(changes)
+ + " Aenderungen: " + ", ".join(changes)
+ comment
+ ((self.action_number > 1) and "\n" + RULE + "\n")
+ transcript.EditableBody())
@@ -750,6 +779,9 @@
importance=None,
version_info=None,
assignees=None,
+ deadline=None,
+ hours_required=None,
+ contact=None,
file=None, fileid=None, filetype=None,
REQUEST=None):
"""Create a new issue in the collector.
@@ -765,6 +797,9 @@
submitter_email=submitter_email,
kibitzers=kibitzers,
topic=topic,
+ deadline=deadline,
+ hours_required=hours_required,
+ contact=contact,
classification=classification,
security_related=security_related,
importance=importance,