On 1/20/07, Joshua J. Kugler <[EMAIL PROTECTED]> wrote:
>
> [OK...let's try this again and see if I get through.  I tried posting through
> the web interface and through google's SMTP servers (while subscribed via my
> Gmail account) and neither post has shown up.  I subscribed via my work
> address and we'll see if that works.]
>
well this time it did :)

> I've tried digging through the code (trunk) but finally got lost and couldn't
> track down a definitive place where the output is generated.  Went back
> through controllers.py, util.py, and some others.  So, I'm posting. :)
>
yea the code is a little dark since the actual method is a "generic
function" based on the ruleDispatch package, alberto knows about it :)

> Is there any option to return the data as a python pickle?  With a good
> Pythoon GUI toolkit (Qt, Gtk, Wx, etc) you could make a really nice front end
> to a nice back-end data service.  I realize I could use XML-RPC or JSON, but
> I thought, "Why not keep it in Python's native format, and avoid the overhead
> of conversion?"
sounds interesting although pickle in itself is not "native" and has
several problems you haven't consider like the fact that pickles may
not be compatible between version of python itself. and I think
transmitting a json string over the network is faster then a pickle
object (smaller data).

that said seems interesting

>  I'm sure it wouldn't be that hard to add.  I'll do it
> myself, if someone wants to point me to the right place in the code. :)
>
the first thing is that you need to understand generic functions after
that probably you'll need to patch the code in
http://trac.turbogears.org/browser/trunk/turbogears/controllers.py#L168
and below to add the new rule type (yes the code is a little dense)

after that it's just creating the rules and the API will take care of
deciding what to call.
> Comments?
>
> j
>
> --
> Joshua Kugler
> Lead System Admin -- Senior Programmer
> http://www.eeinternet.com
> PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE
> PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to