rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
self._prop, self._formname, self._value.local(offset)) | self._prop, self._formname, self._value, offset=offset) | def local(self, offset): ''' Return the date/time as a local (timezone offset) date/time. ''' self.view_check() | 2d25e94e1e2914be2839bec467ee80009b565a37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/2d25e94e1e2914be2839bec467ee80009b565a37/templating.py |
def hasPermission(self, permission, classname=_marker): | def hasPermission(self, permission, classname=_marker, itemid=None): | def hasPermission(self, permission, classname=_marker): """Check whether the user has 'permission' on the current class.""" if classname is self._marker: classname = self.client.classname return self.db.security.hasPermission(permission, self.client.userid, classname) | cc0f0abbe66d4241d7d56b7702ee4009092ffdfe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/cc0f0abbe66d4241d7d56b7702ee4009092ffdfe/actions.py |
classname) | classname=classname, itemid=itemid) | def hasPermission(self, permission, classname=_marker): """Check whether the user has 'permission' on the current class.""" if classname is self._marker: classname = self.client.classname return self.db.security.hasPermission(permission, self.client.userid, classname) | cc0f0abbe66d4241d7d56b7702ee4009092ffdfe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/cc0f0abbe66d4241d7d56b7702ee4009092ffdfe/actions.py |
if self.hasPermission('Edit'): | if self.hasPermission('Edit', itemid=self.nodeid): | def editItemPermission(self, props): """Determine whether the user has permission to edit this item. | cc0f0abbe66d4241d7d56b7702ee4009092ffdfe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/cc0f0abbe66d4241d7d56b7702ee4009092ffdfe/actions.py |
y,m,d,H,M,S,x,x,x = time.gmtime() | y,m,d,H,M,S,x,x,x = time.gmtime(time.time()) | def set(self, spec, offset=0, date_re=re.compile(r''' (((?P<y>\d\d\d\d)-)?((?P<m>\d\d)-(?P<d>\d\d))?)? # yyyy-mm-dd (?P<n>\.)? # . (((?P<H>\d?\d):(?P<M>\d\d))?(:(?P<S>\d\d))?)? # hh:mm:ss (?P<o>.+)? # offset ''', re.VERBOSE)): ''' set the da... | 6f982cbabe38a150edbdb4590c88134200c50b82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/6f982cbabe38a150edbdb4590c88134200c50b82/date.py |
def _opendb(self): '''Open the roundup instance database for a transaction. ''' instance = roundup.instance.open(self.instance_home) request = RequestWrapper(self.REQUEST['RESPONSE']) env = self.REQUEST.environ | 7f310c1f43da2fde0afb80e85d9a251b7ca91b74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/7f310c1f43da2fde0afb80e85d9a251b7ca91b74/ZRoundup.py | ||
client.split_path = [item] | client.path = item | def __getitem__(self, item): '''All other URL accesses are passed throuh to roundup ''' try: client = self._opendb() # fake the path that roundup should use client.split_path = [item] # and call roundup to do something client.main() return '' except NotFound: raise 'NotFound', self.REQUEST.URL pass except: import trace... | 7f310c1f43da2fde0afb80e85d9a251b7ca91b74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/7f310c1f43da2fde0afb80e85d9a251b7ca91b74/ZRoundup.py |
for idir in '. detectors html'.split(): | for idir in '. detectors extensions html'.split(): | def main(): # build list of scripts from their implementation modules roundup_scripts = map(scriptname, glob('roundup/scripts/[!_]*.py')) # template munching packagelist = [ 'roundup', 'roundup.cgi', 'roundup.cgi.PageTemplates', 'roundup.cgi.TAL', 'roundup.cgi.ZTUtils', 'roundup.backends', 'roundup.scripts' ] installd... | aa2220c08136348067fad74c58c22cceb1d30822 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/aa2220c08136348067fad74c58c22cceb1d30822/setup.py |
def main(): # build list of scripts from their implementation modules roundup_scripts = map(scriptname, glob('roundup/scripts/[!_]*.py')) # template munching packagelist = [ 'roundup', 'roundup.cgi', 'roundup.cgi.PageTemplates', 'roundup.cgi.TAL', 'roundup.cgi.ZTUtils', 'roundup.backends', 'roundup.scripts' ] installd... | aa2220c08136348067fad74c58c22cceb1d30822 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/aa2220c08136348067fad74c58c22cceb1d30822/setup.py | ||
def determine_db_type(self, path): ''' determine which DB wrote the class file | def cache_db_type(self, path): ''' determine which DB wrote the class file, and cache it as an attribute of __class__ (to allow for subclassed DBs to be different sorts) | def determine_db_type(self, path): ''' determine which DB wrote the class file ''' db_type = '' if os.path.exists(path): db_type = whichdb.whichdb(path) if not db_type: raise hyperdb.DatabaseError, "Couldn't identify database type" elif os.path.exists(path+'.db'): # if the path ends in '.db', it's a dbm database, wheth... | 3ead45221cfcc20c56df38cbb14e9d9c64243a54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/3ead45221cfcc20c56df38cbb14e9d9c64243a54/sessions.py |
return db_type | self.__class__._db_type = db_type | def determine_db_type(self, path): ''' determine which DB wrote the class file ''' db_type = '' if os.path.exists(path): db_type = whichdb.whichdb(path) if not db_type: raise hyperdb.DatabaseError, "Couldn't identify database type" elif os.path.exists(path+'.db'): # if the path ends in '.db', it's a dbm database, wheth... | 3ead45221cfcc20c56df38cbb14e9d9c64243a54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/3ead45221cfcc20c56df38cbb14e9d9c64243a54/sessions.py |
db_type = self.determine_db_type(path) | if self._db_type is None: self.cache_db_type(path) db_type = self._db_type | def opendb(self, mode): '''Low-level database opener that gets around anydbm/dbm eccentricities. ''' # figure the class db type path = os.path.join(os.getcwd(), self.dir, self.name) db_type = self.determine_db_type(path) | 3ead45221cfcc20c56df38cbb14e9d9c64243a54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/3ead45221cfcc20c56df38cbb14e9d9c64243a54/sessions.py |
'login': 'login_action', | 'login': 'loginAction', | def content(self): ''' Callback used by the page template to render the content of the page. | b1bc7f9506cbf5af8a01c9e7e59b1950c097e889 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b1bc7f9506cbf5af8a01c9e7e59b1950c097e889/client.py |
"login" -> self.login_action | "login" -> self.loginAction | def handle_action(self): ''' Determine whether there should be an _action called. | b1bc7f9506cbf5af8a01c9e7e59b1950c097e889 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b1bc7f9506cbf5af8a01c9e7e59b1950c097e889/client.py |
def login_action(self): ''' Attempt to log a user in and set the cookie | def loginAction(self): ''' Attempt to log a user in. Sets up a session for the user which contains the login credentials. | def login_action(self): ''' Attempt to log a user in and set the cookie ''' # we need the username at a minimum if not self.form.has_key('__login_name'): self.error_message.append(_('Username required')) return | b1bc7f9506cbf5af8a01c9e7e59b1950c097e889 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b1bc7f9506cbf5af8a01c9e7e59b1950c097e889/client.py |
if not self.loginPermission(): self.make_user_anonymous() raise Unauthorised, _("You do not have permission to login") | def login_action(self): ''' Attempt to log a user in and set the cookie ''' # we need the username at a minimum if not self.form.has_key('__login_name'): self.error_message.append(_('Username required')) return | b1bc7f9506cbf5af8a01c9e7e59b1950c097e889 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b1bc7f9506cbf5af8a01c9e7e59b1950c097e889/client.py | |
def searchAction(self): ''' Mangle some of the form variables. | b1bc7f9506cbf5af8a01c9e7e59b1950c097e889 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b1bc7f9506cbf5af8a01c9e7e59b1950c097e889/client.py | ||
if (self.db.config.MESSAGES_TO_AUTHOR == 'yes' and users.get(authid, 'username') != 'anonymous'): sendto.append(authid) | if (users.get(authid, 'username') != 'anonymous' and not r.has_key(authid)): if self.db.config.MESSAGES_TO_AUTHOR == 'yes': sendto.append(authid) recipients.append(authid) elif self.db.config.MESSAGES_TO_AUTHOR == 'new' and not oldvalues: sendto.append(authid) recipients.append(authid) | def nosymessage(self, nodeid, msgid, oldvalues, whichnosy='nosy', from_address=None, cc=[]): #, bcc=[]): """Send a message to the members of an issue's nosy list. | fc2d29a42c044aa45271edb2469322d8dcbfbf06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/fc2d29a42c044aa45271edb2469322d8dcbfbf06/roundupdb.py |
'if NOT "%%_4ver%%" == "" "%(python)s" -O -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n' 'if "%%_4ver%%" == "" "%(python)s" -O -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n' | 'if NOT "%%_4ver%%" == "" "%(python)s" -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n' 'if "%%_4ver%%" == "" "%(python)s" -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n' | def copy_scripts(self): """ Create each script listed in 'self.scripts' """ if not self.package_name: raise Exception("You have to inherit build_scripts_create and" " provide a package name") | e43001d731ec5b7816c0a309354ad7994c728291 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/e43001d731ec5b7816c0a309354ad7994c728291/setup.py |
file.write(' | file.write(' | def copy_scripts(self): """ Create each script listed in 'self.scripts' """ if not self.package_name: raise Exception("You have to inherit build_scripts_create and" " provide a package name") | e43001d731ec5b7816c0a309354ad7994c728291 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/e43001d731ec5b7816c0a309354ad7994c728291/setup.py |
pass | mindate = int(calendar.timegm(pack_before.get_tuple())) i = 0 while i < len(self.hist): if self.hist[i].date < mindate and self.hist[i].action != _CREATE: self.hist.delete(i) else: i = i + 1 | def pack(self, pack_before): pass | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
def addjournal(self, tablenm, nodeid, action, params): tblid = self.tables.find(name=tablenm) | def addjournal(self, tablenm, nodeid, action, params, creator=None, creation=None): try: tblid = self.tables.find(name=tablenm) except ValueError: open('/u/roundup-sf/roundup/error.out','w').write('\nself.tables=%s, tablenm=%s\n' % (self.tables.structure(), tablenm)) raise | def addjournal(self, tablenm, nodeid, action, params): tblid = self.tables.find(name=tablenm) if tblid == -1: tblid = self.tables.append(name=tablenm) # tableid:I,nodeid:I,date:I,user:I,action:I,params:B self.hist.append(tableid=tblid, nodeid=int(nodeid), date=int(time.time()), action=action, user = self.curuserid, par... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
date=int(time.time()), | date=creation, | def addjournal(self, tablenm, nodeid, action, params): tblid = self.tables.find(name=tablenm) if tblid == -1: tblid = self.tables.append(name=tablenm) # tableid:I,nodeid:I,date:I,user:I,action:I,params:B self.hist.append(tableid=tblid, nodeid=int(nodeid), date=int(time.time()), action=action, user = self.curuserid, par... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
user = self.curuserid, | user = creator, | def addjournal(self, tablenm, nodeid, action, params): tblid = self.tables.find(name=tablenm) if tblid == -1: tblid = self.tables.append(name=tablenm) # tableid:I,nodeid:I,date:I,user:I,action:I,params:B self.hist.append(tableid=tblid, nodeid=int(nodeid), date=int(time.time()), action=action, user = self.curuserid, par... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
def gethistory(self, tablenm, nodeid): | def getjournal(self, tablenm, nodeid): | def gethistory(self, tablenm, nodeid): rslt = [] tblid = self.tables.find(name=tablenm) if tblid == -1: return rslt q = self.hist.select(tableid=tblid, nodeid=int(nodeid)) i = 0 userclass = self.getclass('user') for row in q: try: params = marshal.loads(row.params) except ValueError: print "history couldn't unmarshal %... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
userclass = self.getclass('user') | def gethistory(self, tablenm, nodeid): rslt = [] tblid = self.tables.find(name=tablenm) if tblid == -1: return rslt q = self.hist.select(tableid=tblid, nodeid=int(nodeid)) i = 0 userclass = self.getclass('user') for row in q: try: params = marshal.loads(row.params) except ValueError: print "history couldn't unmarshal %... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py | |
usernm = userclass.get(str(row.user), 'username') | def gethistory(self, tablenm, nodeid): rslt = [] tblid = self.tables.find(name=tablenm) if tblid == -1: return rslt q = self.hist.select(tableid=tblid, nodeid=int(nodeid)) i = 0 userclass = self.getclass('user') for row in q: try: params = marshal.loads(row.params) except ValueError: print "history couldn't unmarshal %... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py | |
rslt.append((i, dt, usernm, _actionnames[row.action], params)) i += 1 | rslt.append((nodeid, dt, str(row.user), _actionnames[row.action], params)) | def gethistory(self, tablenm, nodeid): rslt = [] tblid = self.tables.find(name=tablenm) if tblid == -1: return rslt q = self.hist.select(tableid=tblid, nodeid=int(nodeid)) i = 0 userclass = self.getclass('user') for row in q: try: params = marshal.loads(row.params) except ValueError: print "history couldn't unmarshal %... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
if type(value) != _LISTTYPE: | if value is not None and type(value) != _LISTTYPE: | def set(self, nodeid, **propvalues): isnew = 0 if propvalues.has_key('#ISNEW'): isnew = 1 del propvalues['#ISNEW'] if not isnew: self.fireAuditors('set', nodeid, propvalues) if not propvalues: return propvalues if propvalues.has_key('id'): raise KeyError, '"id" is reserved' if self.db.journaltag is None: raise hyperdb.... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
if not isinstance(value, password.Password): | if value is not None and not isinstance(value, password.Password): | def set(self, nodeid, **propvalues): isnew = 0 if propvalues.has_key('#ISNEW'): isnew = 1 del propvalues['#ISNEW'] if not isnew: self.fireAuditors('set', nodeid, propvalues) if not propvalues: return propvalues if propvalues.has_key('id'): raise KeyError, '"id" is reserved' if self.db.journaltag is None: raise hyperdb.... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
elif value is not None and isinstance(prop, hyperdb.Date): if not isinstance(value, date.Date): | elif isinstance(prop, hyperdb.Date): if value is not None and not isinstance(value, date.Date): | def set(self, nodeid, **propvalues): isnew = 0 if propvalues.has_key('#ISNEW'): isnew = 1 del propvalues['#ISNEW'] if not isnew: self.fireAuditors('set', nodeid, propvalues) if not propvalues: return propvalues if propvalues.has_key('id'): raise KeyError, '"id" is reserved' if self.db.journaltag is None: raise hyperdb.... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
setattr(row, key, int(calendar.timegm(value.get_tuple()))) | if value is None: setattr(row, key, 0) else: setattr(row, key, int(calendar.timegm(value.get_tuple()))) | def set(self, nodeid, **propvalues): isnew = 0 if propvalues.has_key('#ISNEW'): isnew = 1 del propvalues['#ISNEW'] if not isnew: self.fireAuditors('set', nodeid, propvalues) if not propvalues: return propvalues if propvalues.has_key('id'): raise KeyError, '"id" is reserved' if self.db.journaltag is None: raise hyperdb.... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
elif value is not None and isinstance(prop, hyperdb.Interval): if not isinstance(value, date.Interval): | elif isinstance(prop, hyperdb.Interval): if value is not None and not isinstance(value, date.Interval): | def set(self, nodeid, **propvalues): isnew = 0 if propvalues.has_key('#ISNEW'): isnew = 1 del propvalues['#ISNEW'] if not isnew: self.fireAuditors('set', nodeid, propvalues) if not propvalues: return propvalues if propvalues.has_key('id'): raise KeyError, '"id" is reserved' if self.db.journaltag is None: raise hyperdb.... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
setattr(row, key, str(value)) | if value is None: setattr(row, key, '') else: setattr(row, key, str(value)) | def set(self, nodeid, **propvalues): isnew = 0 if propvalues.has_key('#ISNEW'): isnew = 1 del propvalues['#ISNEW'] if not isnew: self.fireAuditors('set', nodeid, propvalues) if not propvalues: return propvalues if propvalues.has_key('id'): raise KeyError, '"id" is reserved' if self.db.journaltag is None: raise hyperdb.... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
elif value is not None and isinstance(prop, hyperdb.Number): setattr(row, key, int(value)) | elif isinstance(prop, hyperdb.Number): if value is None: value = 0 try: v = int(value) except ValueError: raise TypeError, "%s (%s) is not numeric" % (key, repr(value)) setattr(row, key, v) | def set(self, nodeid, **propvalues): isnew = 0 if propvalues.has_key('#ISNEW'): isnew = 1 del propvalues['#ISNEW'] if not isnew: self.fireAuditors('set', nodeid, propvalues) if not propvalues: return propvalues if propvalues.has_key('id'): raise KeyError, '"id" is reserved' if self.db.journaltag is None: raise hyperdb.... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
elif value is not None and isinstance(prop, hyperdb.Boolean): bv = value != 0 | elif isinstance(prop, hyperdb.Boolean): if value is None: bv = 0 elif value not in (0,1): raise TypeError, "%s (%s) is not boolean" % (key, repr(value)) else: bv = value | def set(self, nodeid, **propvalues): isnew = 0 if propvalues.has_key('#ISNEW'): isnew = 1 del propvalues['#ISNEW'] if not isnew: self.fireAuditors('set', nodeid, propvalues) if not propvalues: return propvalues if propvalues.has_key('id'): raise KeyError, '"id" is reserved' if self.db.journaltag is None: raise hyperdb.... | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
return self.db.gethistory(self.classname, nodeid) | return self.db.getjournal(self.classname, nodeid) | def history(self, nodeid): if not self.do_journal: raise ValueError, 'Journalling is disabled for this class' return self.db.gethistory(self.classname, nodeid) | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
def destroy(self, keyvalue): iv = self.getindexview() if iv: ndx = iv.find(k=keyvalue) if ndx > -1: id = iv[ndx].i iv.delete(ndx) view = self.getview() ndx = view.find(id=id) if ndx > -1: view.delete(ndx) | def destroy(self, id): view = self.getview(1) ndx = view.find(id=int(id)) if ndx > -1: if self.keyname: keyvalue = getattr(view[ndx], self.keyname) iv = self.getindexview(1) if iv: ivndx = iv.find(k=keyvalue) if ivndx > -1: iv.delete(ivndx) view.delete(ndx) self.db.destroyjournal(self.classname, id) self.db.dirty = 1 | def destroy(self, keyvalue): #TODO clean this up once Richard's said how it should work iv = self.getindexview() if iv: ndx = iv.find(k=keyvalue) if ndx > -1: id = iv[ndx].i iv.delete(ndx) view = self.getview() ndx = view.find(id=id) if ndx > -1: view.delete(ndx) | abbc2c6f076f533f0b88cea6324a837392869dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/abbc2c6f076f533f0b88cea6324a837392869dc1/back_metakit.py |
vals = (setid, spec.classname) | vals = (setid, classname) | def setid(self, classname, setid): ''' Set the id counter: used during import of database ''' cursor = self.conn.cursor() sql = 'update ids set num=%s where name=%s'%(self.arg, self.arg) vals = (setid, spec.classname) if __debug__: print >>hyperdb.DEBUG, 'setid', (self, sql, vals) cursor.execute(sql, vals) | d63ac8ceffd11fcdca20fcbbed3fd9e6c65d1605 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d63ac8ceffd11fcdca20fcbbed3fd9e6c65d1605/rdbms_common.py |
y, m, d, x, x, x, x, x, x = time.gmtime() | y, m, d, x, x, x, x, x, x = time.gmtime(time.time()) | def testDate(self): ae = self.assertEqual date = Date("2000-04-17") ae(str(date), '2000-04-17.00:00:00') date = Date("01-25") y, m, d, x, x, x, x, x, x = time.gmtime() ae(str(date), '%s-01-25.00:00:00'%y) date = Date("2000-04-17.03:45") ae(str(date), '2000-04-17.03:45:00') date = Date("08-13.22:13") ae(str(date), '%s-0... | 918a24de4d68aa87f3f0efd6c5f857ebc516e36b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/918a24de4d68aa87f3f0efd6c5f857ebc516e36b/test_dates.py |
y, m, d, x, x, x, x, x, x = time.gmtime() | y, m, d, x, x, x, x, x, x = time.gmtime(time.time()) | def testOffset(self): ae = self.assertEqual date = Date("2000-04-17", -5) ae(str(date), '2000-04-17.00:00:00') date = Date("01-25", -5) y, m, d, x, x, x, x, x, x = time.gmtime() ae(str(date), '%s-01-25.00:00:00'%y) date = Date("2000-04-17.03:45", -5) ae(str(date), '2000-04-17.08:45:00') date = Date("08-13.22:13", -5) a... | 918a24de4d68aa87f3f0efd6c5f857ebc516e36b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/918a24de4d68aa87f3f0efd6c5f857ebc516e36b/test_dates.py |
if type(base) != type("") or not base.startswith( "http://" ) : | if not isinstance( base , type('') ) or not base.startswith( "http://" ) : | def email_signature(self, nodeid, msgid): ''' Add a signature to the e-mail with some useful information ''' | d40b9b909e35bdb2f3457e887a4daa1c97edba0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d40b9b909e35bdb2f3457e887a4daa1c97edba0b/roundupdb.py |
try : oldvalues.keys except AttributeError : return '\n'.join( ('', '-'*10, "Precondition/interface Error -- 'oldvalues' isn't a dict." , '-'*10 , '' , str(oldvalues) ) ) | def generateChangeNote(self, nodeid, oldvalues): """Generate a change note that lists property changes """ cn = self.classname cl = self.db.classes[cn] changed = {} props = cl.getprops(protected=0) | d40b9b909e35bdb2f3457e887a4daa1c97edba0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d40b9b909e35bdb2f3457e887a4daa1c97edba0b/roundupdb.py | |
def generateChangeNote(self, nodeid, oldvalues): """Generate a change note that lists property changes """ cn = self.classname cl = self.db.classes[cn] changed = {} props = cl.getprops(protected=0) | d40b9b909e35bdb2f3457e887a4daa1c97edba0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d40b9b909e35bdb2f3457e887a4daa1c97edba0b/roundupdb.py | ||
if isinstance(prop, hyperdb.Multilink) and \ len(args[k]) > 0: | if isinstance(prop, hyperdb.Multilink) and args[k]: | def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self... | 1e6049bb88706c55b9bbe468192106e795b8dcbc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/1e6049bb88706c55b9bbe468192106e795b8dcbc/templating.py |
self.client.db.security.hasPermission = lambda a,b,c: True | self.client.db.security.hasPermission = lambda *args, **kwargs: True | def testCorrectLogin(self): self.client.db.security.hasPermission = lambda a,b,c: True | d9b97716a39025bf48047fde83911de0fb5cd15e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d9b97716a39025bf48047fde83911de0fb5cd15e/test_actions.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testNewIssueAuthMsg(self): message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testSimpleFollowup(self): self.doNewIssue() message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testFollowup(self): self.doNewIssue() | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testFollowupTitleMatch(self): self.doNewIssue() message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testFollowupNosyAuthor(self): self.doNewIssue() self.db.config.ADD_AUTHOR_TO_NOSY = 'yes' message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testFollowupNosyRecipients(self): self.doNewIssue() self.db.config.ADD_RECIPIENTS_TO_NOSY = 'yes' message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testFollowupNosyAuthorAndCopy(self): self.doNewIssue() self.db.config.ADD_AUTHOR_TO_NOSY = 'yes' self.db.config.MESSAGES_TO_AUTHOR = 'yes' message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testFollowupNoNosyAuthor(self): self.doNewIssue() self.instance.config.ADD_AUTHOR_TO_NOSY = 'no' message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testFollowupNoNosyRecipients(self): self.doNewIssue() self.instance.config.ADD_RECIPIENTS_TO_NOSY = 'no' message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testEnc01(self): self.doNewIssue() message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testMultipartEnc01(self): self.doNewIssue() message = cStringIO.StringIO('''Content-Type: text/plain; | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
http://your.tracker.url.example/issue1 | http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 | def testFollowupStupidQuoting(self): self.doNewIssue() | 795b5b3aadba5dd2efb73f9d223cf8ac82632888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/795b5b3aadba5dd2efb73f9d223cf8ac82632888/test_mailgw.py |
raise PermissionError, 'You do not have permission to edit %s'%cn | raise Unauthorised, 'You do not have permission to edit %s'%cn | def _changenode(self, cn, nodeid, props): ''' change the node based on the contents of the form ''' # check for permission if not self.editItemPermission(props): raise PermissionError, 'You do not have permission to edit %s'%cn | 67e972a37e2891895d7a6768adc6421c45e59ccb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/67e972a37e2891895d7a6768adc6421c45e59ccb/client.py |
raise PermissionError, 'You do not have permission to create %s'%cn | raise Unauthorised, 'You do not have permission to create %s'%cn | def _createnode(self, cn, props): ''' create a node based on the contents of the form ''' # check for permission if not self.newItemPermission(props): raise PermissionError, 'You do not have permission to create %s'%cn | 67e972a37e2891895d7a6768adc6421c45e59ccb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/67e972a37e2891895d7a6768adc6421c45e59ccb/client.py |
view = self.getview() | view = self.getview() | def get(self, nodeid, propname, default=_marker, cache=1): ''' 'cache' exists for backwards compatibility, and is not used. ''' view = self.getview() id = int(nodeid) if cache == 0: oldnode = self.uncommitted.get(id, None) if oldnode and oldnode.has_key(propname): raw = oldnode[propname] converter = _converters.get(rut... | 99cb8279480864a1d0bb10ca119d7321909a26e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/99cb8279480864a1d0bb10ca119d7321909a26e5/back_metakit.py |
ndx = iv.find(k=getattr(row, self.key),i=row.id) if ndx > -1: | ndx = iv.find(k=getattr(row, self.key)) if ndx > -1 and iv[ndx].i == row.id: | def retire(self, nodeid): if self.db.journaltag is None: raise hyperdb.DatabaseError, 'Database open read-only' self.fireAuditors('retire', nodeid, None) view = self.getview(READWRITE) ndx = view.find(id=int(nodeid)) if ndx < 0: raise KeyError, "nodeid %s not found" % nodeid | 99cb8279480864a1d0bb10ca119d7321909a26e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/99cb8279480864a1d0bb10ca119d7321909a26e5/back_metakit.py |
"Defines the brackets used for delimiting the commands\n" "suffix in a subject line."), | "Defines the brackets used for delimiting the prefix and \n" 'suffix in a subject line. The presence of "suffix" in\n' "the config option name is a historical artifact and may\n" "be ignored."), | def str2value(self, value): try: roundup.date.get_timezone(value) except KeyError: raise OptionValueError(self, value, "Timezone name or numeric hour offset required") return value | c4dc9995e05d3bfd57516eedca11c28c74697688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/c4dc9995e05d3bfd57516eedca11c28c74697688/configuration.py |
if sort: w('<input type="hidden" name=":sort" value="%s">'%','.join(sort)) | def render(self, filterspec={}, filter=[], columns=[], sort=[], group=[], show_display_form=1, nodeids=None, show_customization=1): self.filterspec = filterspec | e3e86bd08e5e2d281e0208d573a67bbd1d8b5633 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/e3e86bd08e5e2d281e0208d573a67bbd1d8b5633/htmltemplate.py | |
self.wfile.write(favico) | bufsize = 4 * 1024 Processing = True while Processing: data = favicon_fileobj.read(bufsize) if len(data) > 0: self.wfile.write(data) else: Processing = False favicon_fileobj.close() | def inner_run_cgi(self): ''' This is the inner part of the CGI handling ''' rest = self.path | 310bcbd03a0bbca37d277d0e3547ff34570eebb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/310bcbd03a0bbca37d277d0e3547ff34570eebb3/roundup_server.py |
l = props.items() l.sort() for propname, prop in l: | prop_items = props.items() prop_items.sort() for propname, prop in prop_items: | def generateCreateNote(self, nodeid): """Generate a create note that lists initial property values """ cn = self.classname cl = self.db.classes[cn] props = cl.getprops(protected=0) | 4fb45a00e50dd335e0ee2308edb4b7e10dc3d794 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/4fb45a00e50dd335e0ee2308edb4b7e10dc3d794/roundupdb.py |
l = changed.items() l.sort() for propname, oldvalue in l: | changed_items = changed.items() changed_items.sort() for propname, oldvalue in changed_items: | def generateChangeNote(self, nodeid, oldvalues): """Generate a change note that lists property changes """ if not isinstance(oldvalues, type({})): raise TypeError("'oldvalues' must be dict-like, not %s."% type(oldvalues)) | 4fb45a00e50dd335e0ee2308edb4b7e10dc3d794 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/4fb45a00e50dd335e0ee2308edb4b7e10dc3d794/roundupdb.py |
'does not exist')%locals() | ' does not exist')%locals() | def do_initialise(self, instance_home, args): '''Usage: initialise [template [backend [admin password]]] Initialise a new Roundup instance. | 9bd649bb6a220a2c1df34a7b51637647968b918a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/9bd649bb6a220a2c1df34a7b51637647968b918a/admin.py |
av = an[prop] = av.lower() | av = av.lower() | def sortfun(a, b, sort=sort, group=group, properties=self.getprops(), db = self.db, cl=self): a_id, an = a b_id, bn = b # sort by group and then sort for dir, prop in group, sort: if dir is None or prop is None: continue | 8bc0545cdf940963df26907cdaa4a30f82f422e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8bc0545cdf940963df26907cdaa4a30f82f422e1/back_anydbm.py |
bv = bn[prop] = bv.lower() | bv = bv.lower() | def sortfun(a, b, sort=sort, group=group, properties=self.getprops(), db = self.db, cl=self): a_id, an = a b_id, bn = b # sort by group and then sort for dir, prop in group, sort: if dir is None or prop is None: continue | 8bc0545cdf940963df26907cdaa4a30f82f422e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8bc0545cdf940963df26907cdaa4a30f82f422e1/back_anydbm.py |
for prop_n in self._props: | for prop_n in self._props.keys(): | def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self... | 8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b/templating.py |
if prop_n in self._props and isinstance(self._props[prop_n], hyperdb.Link): | if isinstance(self._props[prop_n], hyperdb.Link): | def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self... | 8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b/templating.py |
if k in current: | if current.has_key(k): | def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self... | 8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b/templating.py |
if k in current: | if current.has_key(k): | def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self... | 8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b/templating.py |
if k in current: | if current.has_key(k): | def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self... | 8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b/templating.py |
if k in current: | if current.has_key(k): | def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self... | 8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b/templating.py |
if k not in current: cell.append('%s: (no value)'%k) else: | if current.has_key(k): | def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self... | 8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b/templating.py |
if k in current: | if current.has_key(k): | def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self... | 8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8e4fa728a66534e70bb1cfec9fe5df00dd4a1b9b/templating.py |
properties['superseder'] = hyperdb.Multilink("issue") | properties['superseder'] = hyperdb.Multilink(classname) | def __init__(self, db, classname, **properties): """The newly-created class automatically includes the "messages", "files", "nosy", and "superseder" properties. If the 'properties' dictionary attempts to specify any of these properties or a "creation" or "activity" property, a ValueError is raised.""" if not propertie... | bb7476b3feeb2daf5e726e58659238347068fb5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/bb7476b3feeb2daf5e726e58659238347068fb5d/roundupdb.py |
raise MailUsageError, ''' | raise MailUsageError, _(""" | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
''' | """) | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise MailUsageError, """ | raise MailUsageError, _(""" | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
Subject was: '%s' """%subject | Subject was: '%(subject)s' """) % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise MailUsageError, ''' The class name you identified in the subject line ("%s") does not exist in the | validname = ', '.join(self.db.getclasses()) raise MailUsageError, _(""" The class name you identified in the subject line ("%(classname)s") does not exist in the | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
Valid class names are: %s Subject was: "%s" '''%(classname, ', '.join(self.db.getclasses()), subject) | Valid class names are: %(validname)s Subject was: "%(subject)s" """) % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise MailUsageError, ''' | raise MailUsageError, _(""" | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
Subject was: "%s" '''%subject | Subject was: "%(subject)s" """) % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise MailUsageError, ''' The node specified by the designator in the subject of your message ("%s") does not exist. Subject was: "%s" '''%(nodeid, subject) | raise MailUsageError, _(""" The node specified by the designator in the subject of your message ("%(nodeid)s") does not exist. Subject was: "%(subject)s" """) % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise MailUsageError, ''' | mailadmin = config['ADMIN_EMAIL'] raise MailUsageError, _(""" | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
%s and have them fix the incorrect class specified as: %s ''' % (config['ADMIN_EMAIL'], current_class) | %(mailadmin)s and have them fix the incorrect class specified as: %(current_class)s """) % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise MailUsageError, ''' | mailadmin = config['ADMIN_EMAIL'] raise MailUsageError, _(""" | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
%s and have them fix the incorrect properties: %s '''%(config['ADMIN_EMAIL'], errors) | %(mailadmin)s and have them fix the incorrect properties: %(errors)s """) % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise Unauthorized, ''' | from_address = from_list[0][1] raise Unauthorized, _(""" | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
Unknown address: %s '''%from_list[0][1] | Unknown address: %(from_address)s """) % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise Unauthorized, 'You are not permitted to access '\ 'this tracker.' | raise Unauthorized, _( 'You are not permitted to access this tracker.') | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise Unauthorized, 'You are not permitted to '\ 'edit %s.'%classname | raise Unauthorized, _( 'You are not permitted to edit %(classname)s.') % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise Unauthorized, 'You are not permitted to '\ 'create %s.'%classname | raise Unauthorized, _( 'You are not permitted to create %(classname)s.' ) % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise MailUsageError, ''' | raise MailUsageError, _(""" | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
- %s Subject was: "%s" '''%(errors, subject) | - %(errors)s Subject was: "%(subject)s" """) % locals() | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
raise MailUsageError, ''' | raise MailUsageError, _(""" | def handle_message(self, message): ''' message - a Message instance | f9457e5e409c6363bf37d5634a3c77d621f1a603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f9457e5e409c6363bf37d5634a3c77d621f1a603/mailgw.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.