Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
Jorge Godoy wrote: > escalation746 wrote: > > I have updated documentation for this on my blog, diagrammes modernes. > > Surf: > >http://diagrammes-modernes.blogspot.com/ > > Your motivation looks a lot like what is solved by setuptools, eggs and > entry points. Though that problem domain looks d

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread Jorge Godoy
escalation746 wrote: > I have updated documentation for this on my blog, diagrammes modernes. > Surf: > http://diagrammes-modernes.blogspot.com/ Your motivation looks a lot like what is solved by setuptools, eggs and entry points. http://peak.telecommunity.com/DevCenter/PkgResources http://docs.

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
I have updated documentation for this on my blog, diagrammes modernes. Surf: http://diagrammes-modernes.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
Wojciech Mu a wrote: > These names don't match. I replaced Valuable() with proper name, > and everything work fine. That was a result of a transcription error when posting to the newsgroup. My actual test code did not have this error but nevertheless did not work. However, copying the code I *d

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread Wojciech Muła
escalation746 wrote: > def ViewValuable(): [...] > code = """ > Hello() > Plus() > Valuable() > """ These names don't match. I replaced Valuable() with proper name, and everything work fine. w. -- http://mail.python.org/mailman/listinfo/python-list

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
faulkner wrote: > sys._getframe(1).f_locals Brilliant. That one's pretty well hidden and labeled "should be used for internal and specialized purposes only". Guess I'm officially special. :-) To implement this with minimal requirements on the author of the plugin, I created a function in master.

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread faulkner
On Jul 22, 10:06 am, escalation746 <[EMAIL PROTECTED]> wrote: > I've got a namespace query that amounts to this: How can an imported > function see data in the parent custom namespace? I have read through > numerous posts which skirt this issue without answering it. > > To illustrate, create plugin

custom plugin architecture: how to see parent namespace?

2007-07-22 Thread escalation746
I've got a namespace query that amounts to this: How can an imported function see data in the parent custom namespace? I have read through numerous posts which skirt this issue without answering it. To illustrate, create plugin.py with a couple of functions. The second will obviously fail. d