re "too pythonic"

I don't mean that as a bad thing.  I think its great, and python
developers need something that is comfortable to them.   But people who
build frameworks often get into a mire of their own language , and it
makes it difficult for others to adopt ( re: subway , twisted web for
the first year or so it was around ).  I'm all for the strength and
flexibilty of doing things in the idiomatic python fashion - but I also
think its almost a necessity to keep things
accessible/extensible/flexible for others.

In any event, I submitted an exceedinly bad patch to Trac (svn diff
against trunk) here
http://trac.turbogears.org/turbogears/ticket/780

Essentially it does this:

app.cfg gets an 'account_identifier' switch, which can be user_name or
user_email, and one configures what account_identifier is in the form
identity/visitor.py does all the form magic based on account_identifier
identity/**provider.py user_name and user_email are both made to allow
null characters (perhaps this can be different based on app.cfg
settings)?  internally is looks up what the account identifier is, and
does an identity load that is either  user_name based or user_email
based

also, i bumped up user_name to 255 chars - all the other fields were
255, and 16chars for id is just too small (what if the name was
supposed to be an email address or derivitive of one, that could be
something like 132 chars based on rfc )

hopefully someone more familiar with me can take a look and improve
that code.  it should give everyone more flexibility and be 100%
backwards compatible.  i was just unable to figure out how items from
the config file are read ( i assumed they were provided as globals
within a module's namespace , i thought it might have been the 'get'
function, but that seemed to be more  for form reading)


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to