On Jan 24, 2008 2:29 PM, iain duncan <[EMAIL PROTECTED]> wrote: > > > > > > I actually have a tg application that ideally I would like to > > integrate with drupal rather than port it over to drupal. So if you do > > get something going, I'd be happy to look over it, I'm not the most > > qualified person in the world. though in this area. But more eyes in > > the code is a good thing. > > Hey Thomas, it's proving to be pretty doable so far. ( Though I haven't > tackled the sessions and cookies yet, so I shouldn't speak too soon! ) > > I think I might make a whole website on doing it once it's finished, > maybe we could do that together. In drupal, with TG. ;-)
This would be very interesting to see working. I've seen that it is possible to get CakePHP apps working with drupal haven't experienced it myself. I just get so irritable when writing php code so I tend to avoid it. :) I should suck it up though, and quit being such a baby. Feel free to email me offline, I'll be happy to help where I can, you may feel like your dragging me along through turbogears though. I've been kept in .net land during the day for the past year. > > Stuff I've figured out so far: > > - the Drupal book, "Pro Drupal Development" is good, writing modules is > not too hard following their steps > - the menu system if fully hijackable so it shouldn't be hard to split > menu requests up between TG and Drupal halves > - getting drupal to present code that comes from TG is pretty easy if > your deployment platform allows php to make system calls. You can just > make a new drupal block, and then put it something like: > > <?php > $tg_stuff = `wget > http://localhost/tg_widget_hit`<http://localhost/tg_widget_hit%60> > ; > $output = do_what_you_need( $tg_stuff ); > print $output; > ?> > > Tada, my widget from tg is in the Drupal theme! I tried the above with a > python cgi call but ran into weird import problems. I could run the > python.cgi script, but couldn't figure out how to get it happily > importing genshi etc. So if TG is already running, the above seems okay. > If someone knows a better way, let me know! > > I'm thinking I will write a Drupal module for getting rendered widgets > out of TG more elegantly and avoiding the system call. As far as having > to use PHP goes, Drupal eases an awful lot of the pain. I'll be using it > for the blog/forum/story features and doing all my custom widget and > database stuff in TG. > Yep, this is why I love drupal and tolerate php. :) > > Iain > > > > > > > > -- Thomas G. Willis --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

