Okay, I need help after all.  I don't understand trac process at all,
and I can't seem to find the version of the file I patched anywhere in
the svn repository.

I did my debugging against a freshly-downloaded TG 1.0.3.2 from the
cheeseshop via easy_install --upgrade.  Yet the model.py_tmpl that I
got is seriously different from any version I can find, anywhere in
the svn repository, in either the trunk or the 1.0 branch:
http://trac.turbogears.org/browser/trunk/turbogears/qstemplates/quickstart/%2Bpackage%2B/model.py_tmpl?rev=2378
http://trac.turbogears.org/browser/branches/1.0/turbogears/qstemplates/quickstart/%2Bpackage%2B/model.py_tmpl?rev=2378

Both of these look like this for the buggy portion:

    def _set_password(self, cleartext_password):
        "Runs cleartext_password through the hash algorithm before
saving."
        password_hash = identity.encrypt_password(cleartext_password)
        self._SO_set_password(password_hash)

    def set_password_raw(self, password):
        "Saves the password as-is to the database."
        self._SO_set_password(password)

but the one the cheeseshop delivers contains this instead (i.e. the
version with triple-single-quote bug):

    def _set_password(self, password):
        '''
        encrypts password on the fly using the encryption
        algo defined in the configuration
        '''
        self._password = identity.encrypt_password(password)

    def _get_password(self):
        '''
        returns password
        '''
        return self._password

... yet it's not the case that svn contains a new fix to this bug.
Neither of these versions contains any changes at all for over 7
months, and I searched back through their histories for a version
corresponding to 1.0.3.2, and couldn't find it anywhere.  So where's
the 1.0.3.2 version coming from?  I don't seem to understand the
relationship between the svn and cheeseshop versions.  Could it be
that 1.0.3.2 contains a new change to this file that's never been
introduced to the svn repository - at least, to the version of the
repository published at http://trac.turbogears.org ?

Sorry for my ignorance - thanks for your patience.  If anybody can
help .  The one thing I'm certain of is that 1.0.3.2 crashes during
quickstart, so somehow that's got to be fixed.  If anyone can help me
shepherd this patch to where it needs to go, I'd be really grateful.

- Catherine
http://catherinedevlin.blogspot.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to