Mike Orr wrote:
> On Thu, May 22, 2008 at 4:24 AM, Alexandre Conrad <[EMAIL PROTECTED]> wrote:
> 
>> >>> import paste
>> >>> paste
>><module 'paste' (built-in)>
>>
>>built-in ??
>>
>>"rpm -qa | grep paste" yield:
>>python-paste-1.6-1.fc9.noarch
> 
> 
> I thought only C modules could be built in.  How did they build in a
> Python module?  Maybe it's something different called paste.  Try
> dir(paste) and help(paste).
> 

Well, I did install all these packages as RPM:

python-paste-script-1.6.2-2.fc9.noarch
python-paste-1.6-1.fc9.noarch
python-paste-deploy-1.3.1-2.fc9.noarch

Python 2.5.1 (r251:54863, Apr  8 2008, 01:19:33)
[GCC 4.3.0 20080404 (Red Hat 4.3.0-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import paste
 >>> import paste.deploy
 >>> import paste.script
 >>> dir(paste)
['__doc__', '__name__', '__path__', 'deploy', 'script']
 >>> dir(paste.deploy)
['CONFIG', '__builtins__', '__doc__', '__file__', '__name__', 
'__path__', 'appconfig', 'config', 'loadapp', 'loadfilter', 
'loadserver', 'loadwsgi', 'util']
 >>> dir(paste.script)
['__builtins__', '__doc__', '__file__', '__name__', '__path__']
 >>> help(paste)


NAME
     paste

FILE
     (built-in)

PACKAGE CONTENTS
     auth (package)
     cascade
     cgiapp
     cgitb_catcher
     config
     debug (package)
     deploy (package)
     errordocument
     evalexception (package)
     exceptions (package)
     fileapp
     fixture
     flup_session
     gzipper
     httpexceptions
     httpheaders
     httpserver
     lint
     modpython
     pony
     progress
     proxy
     recursive
     registry
     reloader
     request
     response
     script (package)
     session
     transaction
     translogger
     url
     urlmap
     urlparser
     util (package)
     wsgilib
     wsgiwrappers

Note that packages installed by easy_install when installing Pylons, 
such as simplejson, decorator, paste* didn't work at first. As fedora 
provide all these packages, I had to install all the distro's version to 
make it work. Otherwise, it would complain simplejson and others were 
not found. I don't know why.

Regards,
-- 
Alexandre CONRAD


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