i think it is the url pattern that triggered the exception.
after all, it was used as a regular pattern.
i commented out
""""regex = os.path.join(re.escape(regex), '(.*)')""""
and typed my own statement in:
"""
#regex = os.path.join(re.escape(regex), '(.*)') #original
print 'Before: regex=%s is mapped to path=%s' % (regex,path)
#TESTING
regex = '/'.join([regex,'(.*)'])#TESTING
#path = os.path.join(path, '\\1') #original
path = os.path.sep.join([path, '\\1']) #TESTING
print 'AFTER: regex=%s is mapped to path=%s' % (regex,path)
#TESTING
"""
result:
"""
F:\>dev_appserver.py helloworld
Before: regex=/stylesheets is mapped to path=stylesheets
AFTER: regex=/stylesheets/(.*) is mapped to path=stylesheets\\1
'^/stylesheets/(.*)$'
'^/.*$'
INFO 2008-04-08 22:16:56,328 appcfg.py] Checking for updates to
the SDK.
INFO 2008-04-08 22:16:57,467 appcfg.py] The SDK is up to date.
INFO 2008-04-08 22:16:57,483 dev_appserver_main.py] Running
application hell
oworld on port 8080:
http://localhost:8080
"""
this time the url map feature is fixed, however, i still got error
when the page link to the style file:
"""
ERROR 2008-04-08 22:17:45,483 dev_appserver.py] Error encountered
reading fil
e "F:\helloworld\stylesheets\1":
[Errno 2] No such file or directory: 'F:\\helloworld\\stylesheets\\1'
INFO 2008-04-08 22:17:45,500 dev_appserver.py] "GET /stylesheets/
main.css HT
TP/1.1" 404 -
"""
the '\\1' is absolutely regex, however, i haven't figure out what
appengine do to this path afterwards yet.
> > > Please help me solve this problem, thx in advance.- Hide quoted text -
>
> - Show quoted text -