Mark Ramm
-
2010-09-13
- custom_field__size: --> 1
If I click save a bunch of times very rapidly on a wiki edit page, I can occasonally get a 500 error:
Module forgewiki.model.wiki:87 in commit
<< VersionedArtifact.commit(self)
if self.version > 1:
v1 = self.get_version(self.version-1)
v2 = self
la = [ line + '\n' for line in v1.text.splitlines() ]
>> v1 = self.get_version(self.version-1)
Module forgewiki.model.wiki:165 in get_version
<< version = self.version + 1 + version
HC = Page.__mongometa__.history_class
return HC.query.find({'artifact_id':self._id, 'version':version}).one()
def reply(self, text):
>> return HC.query.find({'artifact_id':self._id, 'version':version}).one()
Module ming.orm.ormsession:252 in one
<< except StopIteration:
return result
raise ValueError, 'More than one result from .one()'
def first(self):
>> raise ValueError, 'More than one result from .one()'
ValueError: More than one result from .one()
Log in to post a comment.