PKƒ68“×2EGG-INFO/zip-safe PKƒ68v@ř;;EGG-INFO/SOURCES.txtsetup.py RemovePendingStatusPlugin.egg-info/PKG-INFO RemovePendingStatusPlugin.egg-info/SOURCES.txt RemovePendingStatusPlugin.egg-info/dependency_links.txt RemovePendingStatusPlugin.egg-info/entry_points.txt RemovePendingStatusPlugin.egg-info/top_level.txt removepending/__init__.py removepending/remove_pending.py PKƒ687ÂćLLEGG-INFO/entry_points.txt[trac.plugins] removepending.remove_pending = removepending.remove_pending PKƒ68“×2EGG-INFO/dependency_links.txt PKƒ68‰ä6ëÚÚEGG-INFO/PKG-INFOMetadata-Version: 1.0 Name: RemovePendingStatusPlugin Version: 0.0.1 Summary: Remove 'pending' flag when the reporter responts to a ticket. Home-page: http://trac-hacks.org/wiki/PendingTicketPlugin Author: Daniel Atallah Author-email: datallah@pidgin.im License: BSD Description: A Trac plugin that will remove the 'pending' flag on a ticket (if present) when the reporter responds to it. Keywords: trac plugin pending ticket Platform: UNKNOWN Classifier: Framework :: Trac PKƒ68ć^ˆ´EGG-INFO/top_level.txtremovepending PKđrŁ6removepending/__init__.pyPKƒ68FÁ^!! removepending/remove_pending.pyo;ň ¤(:Fc@s.dkTdklZdefd„ƒYZdS((s*(sITicketChangeListenersRemovePendingPlugincBs-tZeeƒd„Zd„Zd„ZRS(NcCsdS(N((sselfsticket((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pysticket_created scCs™||djo|ddjos|itƒ\}}|iƒ}|idd|idfƒ|id|i|i |dddfƒ|i ƒndS(Nsreporterspendings1sEUPDATE ticket_custom SET value = %s WHERE ticket = %s AND name = %s s0sfINSERT INTO ticket_change (ticket,time,author,field,oldvalue,newvalue) VALUES (%s, %s, %s, %s, %s, %s)( sauthorstickets_get_db_for_writesNonesdbs handle_tascursorsexecutesids time_changedscommit(sselfsticketscommentsauthors old_valuessdbscursors handle_ta((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pysticket_changed s"   cCsdS(N((sselfsticket((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pysticket_deleteds(s__name__s __module__s implementssITicketChangeListenersticket_createdsticket_changedsticket_deleted(((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pysRemovePendingPlugins   N(s trac.cores trac.ticketsITicketChangeListeners ComponentsRemovePendingPlugin(sITicketChangeListenersRemovePendingPlugin((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pys?s PKƒ68FÁ^!! removepending/remove_pending.pyc;ň ¤(:Fc@s.dkTdklZdefd„ƒYZdS((s*(sITicketChangeListenersRemovePendingPlugincBs-tZeeƒd„Zd„Zd„ZRS(NcCsdS(N((sselfsticket((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pysticket_created scCs™||djo|ddjos|itƒ\}}|iƒ}|idd|idfƒ|id|i|i |dddfƒ|i ƒndS(Nsreporterspendings1sEUPDATE ticket_custom SET value = %s WHERE ticket = %s AND name = %s s0sfINSERT INTO ticket_change (ticket,time,author,field,oldvalue,newvalue) VALUES (%s, %s, %s, %s, %s, %s)( sauthorstickets_get_db_for_writesNonesdbs handle_tascursorsexecutesids time_changedscommit(sselfsticketscommentsauthors old_valuessdbscursors handle_ta((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pysticket_changed s"   cCsdS(N((sselfsticket((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pysticket_deleteds(s__name__s __module__s implementssITicketChangeListenersticket_createdsticket_changedsticket_deleted(((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pysRemovePendingPlugins   N(s trac.cores trac.ticketsITicketChangeListeners ComponentsRemovePendingPlugin(sITicketChangeListenersRemovePendingPlugin((s@build/bdist.darwin-8.0.1-x86/egg/removepending/remove_pending.pys?s PKƒ68œgfőŠŠremovepending/__init__.pyo;ň ¤(:Fc@sdS(N((((s:build/bdist.darwin-8.0.1-x86/egg/removepending/__init__.pys?sPKƒ68œgfőŠŠremovepending/__init__.pyc;ň ¤(:Fc@sdS(N((((s:build/bdist.darwin-8.0.1-x86/egg/removepending/__init__.pys?sPKđrŁ6‘rxřřremovepending/remove_pending.py# Plugin to remove Pending status when the reporter modifies a ticket # Copyright 2007 Daniel A. Atallah from trac.core import * from trac.ticket import ITicketChangeListener class RemovePendingPlugin(Component): implements (ITicketChangeListener) def ticket_created(self, ticket): pass def ticket_changed(self, ticket, comment, author, old_values): if (author == ticket['reporter'] and ticket['pending'] == '1'): db, handle_ta = ticket._get_db_for_write(None) cursor = db.cursor() cursor.execute("UPDATE ticket_custom SET value = %s " \ " WHERE ticket = %s AND name = %s ", ('0', ticket.id, 'pending')) #Add the ticket change so that it will appear #correctly in the history and notifications cursor.execute("INSERT INTO ticket_change " "(ticket,time,author,field,oldvalue,newvalue) " "VALUES (%s, %s, %s, %s, %s, %s)", (ticket.id, ticket.time_changed, author, 'pending', '1', '0')) db.commit(); def ticket_deleted(self, ticket): pass PKƒ68“×2¤EGG-INFO/zip-safePKƒ68v@ř;;¤0EGG-INFO/SOURCES.txtPKƒ687ÂćLL¤EGG-INFO/entry_points.txtPKƒ68“×2¤ EGG-INFO/dependency_links.txtPKƒ68‰ä6ëÚÚ¤\EGG-INFO/PKG-INFOPKƒ68ć^ˆ´¤eEGG-INFO/top_level.txtPKđrŁ6¤§removepending/__init__.pyPKƒ68FÁ^!! ¤Ţremovepending/remove_pending.pyoPKƒ68FÁ^!! ¤= removepending/remove_pending.pycPKƒ68œgfőŠŠ¤œremovepending/__init__.pyoPKƒ68œgfőŠŠ¤^removepending/__init__.pycPKđrŁ6‘rxřř¤ removepending/remove_pending.pyPK VU