please review pre-0.7.2

2 views
Skip to first unread message

Chad Whitacre

unread,
Mar 3, 2007, 3:11:11 PM3/3/07
to aspen-users
Hey all,

I spent the day reworking the Aspen docs, paying particular
attention to the API section (I added apps, handlers, rules). I
don't have time to do the 0.7.2 release right now, but I thought
I would mention it here. Please review the docs if you get a chance:

http://www.zetadev.com/software/aspen/trunk/doc/html/

And in general test out the dev snapshot:

http://www.zetadev.com/software/aspen/#snapshot

After 0.7.2 is out, I'm going to start a "magic removal branch"
(a la the famous Django effort of a year ago ;^) ). You can see
what this entails here:

http://code.google.com/p/aspen/issues/list?q=milestone%3A0.7

Giorgi: magic-removal will address your concern with static file
serving that is not tied so closely to the filesystem hierarchy.

Ok all, gotta run for now.

chad

asker

unread,
Mar 3, 2007, 8:38:56 PM3/3/07
to aspen-users

Chad:
I have two questions:
1) What is the role of Stephane under 0.7.2 version?

2) When trying to start Aspen with python C:\os\aspen\bin\aspen -
a0.0.0.0:8000 -rC:/os/dev next error issues:
Next error do not allow me to
starting child server
Traceback (most recent call last):
File "C:\os\aspen\bin\aspen", line 3, in <module>
aspen.main()
File "c:\os\aspen\src\aspen\__init__.py", line 379, in main
start_server()
File "c:\os\aspen\src\aspen\__init__.py", line 170, in start_server
server = server_factory() # factored out to ease testing
File "c:\os\aspen\src\aspen\__init__.py", line 133, in
server_factory
configuration.load_plugins() # user modules loaded here
File "c:\os\aspen\src\aspen\load.py", line 181, in load_plugins
self.apps = self.load_apps()
File "c:\os\aspen\src\aspen\load.py", line 270, in load_apps
obj = colon.colonize(name, fp.name, lineno)
File "c:\os\aspen\src\aspen\colon.py", line 39, in colonize
exec 'import %s as obj' % modname
File "<string>", line 1, in <module>
File "c:\os\aspen\src\aspen\apps\static.py", line 2, in <module>
from aspen.handlers.static import static as static_handler
ImportError: cannot import name static [apps.conf, line 2]


The apps.conf has next 2 lines:
/ grappelli:django # see __/lib/python2.x/grappelli.py
/mix/media aspen.apps.static:static

If I eliminate 2nd. line, Aspen serves very well but I can not read
static files attached to my application.

Thanks for your work,
Best regards.

SmileyChris

unread,
Apr 2, 2007, 3:31:21 AM4/2/07
to aspen-users

On Mar 4, 1:38 pm, "asker" <vizcay...@gmail.com> wrote:
> 1) What is the role of Stephane under 0.7.2 version?

As far as I can tell, this has been superseded by aspen.apps.django_

This is a bug in the current aspen SVN version (207). Update src\aspen
\apps\static.py so that line 2 reads:
from aspen.handlers.static import wsgi as static_handler.

And like I said earlier, rather than grappelli:django you can use
aspen.apps.django_:wsgi

asker

unread,
Apr 2, 2007, 10:01:53 AM4/2/07
to aspen-users
Smiley:
Thanks for your indications and for sharing my inquires. I will work
on it.
Regards.
Vizcayno.

asker

unread,
Apr 2, 2007, 11:53:32 AM4/2/07
to aspen-users
Smiley:
It worked as you indicated. Many thanks!!!

In my C:\os\dev\__\etc\apps.conf I put:
/ aspen.apps.django_:wsgi
/mix/media aspen.apps.static:static

I Included c:\os\dev\ in PYTHONPATH

Assuming I have Aspen in c:\os\aspen, in C:\os\aspen\src\aspen\apps
\static.py I put:

from aspen import configuration


from aspen.handlers.static import wsgi as static_handler

# Replaced by previous line ... from aspen.handlers.static import
static as static_handler
from aspen.utils import find_default, translate
.
.
.

Regards.
Vizcayno.

Reply all
Reply to author
Forward
0 new messages