"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "detectors/newitemcopy.py" between
roundup-1.6.1.tar.gz and roundup-2.0.0.tar.gz

About: Roundup is an highly customisable issue-tracking system with command-line, web and e-mail interfaces (written in Python).

newitemcopy.py  (roundup-1.6.1):newitemcopy.py  (roundup-2.0.0)
skipping to change at line 17 skipping to change at line 17
lines = [ ' '+line for line in lines ] lines = [ ' '+line for line in lines ]
return '\n'.join(lines) return '\n'.join(lines)
def generateCreateNote(db, cl, nodeid): def generateCreateNote(db, cl, nodeid):
# copied from roundupdb.IssueClass.generateCreateNote() # copied from roundupdb.IssueClass.generateCreateNote()
cn = cl.classname cn = cl.classname
props = cl.getprops(protected=0) props = cl.getprops(protected=0)
# list the values # list the values
m = [] m = []
prop_items = props.items() prop_items = sorted(props.items())
prop_items.sort()
for propname, prop in prop_items: for propname, prop in prop_items:
value = cl.get(nodeid, propname, None) value = cl.get(nodeid, propname, None)
# skip boring entries # skip boring entries
if not value: if not value:
continue continue
if isinstance(prop, hyperdb.Link): if isinstance(prop, hyperdb.Link):
link = db.classes[prop.classname] link = db.classes[prop.classname]
if value: if value:
key = link.labelprop(default_to_id=1) key = link.labelprop(default_to_id=1)
if key: if key:
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)