Good moering. Was back at the parents house for my dream :(
Sent from my BlackBerry device on the Rogers Wireless Network

-----Original Message-----
From: durumdara <[email protected]>

Date: Thu, 21 May 2009 07:45:19 
To: pylons-discuss<[email protected]>
Subject: Where are my controllers?



Hi!

I used a code in global_data init to append my shared libs to sys.path
(to simplify the imports).

One of these libs are a special object that collect and hold many
informations, and request are create this to use it's functions.

F. ex:

def index(self):
  R = Request()
  R.DoSomething...
  html = R.CheetahRenderDef()
  return html

I wanna ask that how can this Request object know about the physical
place of the Pylons dirs, like controllers, or other dirs... (c:\web
\pylons\ddd\site\site\controllers)
Ok, I can pass it in my creation with this:
R = Request(__file__)

But this creation is existing in many codes, libs (without parameter),
and I wanna avoid this replace.

If possible, I wanna get informations from the Pylons. Do you know
about a property, function, etc. that can provide me the Pylons
directory info?

Thanks for your help:
  dd



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

Reply via email to