You may have an old version of t2. This is fixed in mine.

The best course of action is getting rid of web2py.js completly. It
has bigger problems than this one:
1) it does not handle internationalization of date and datetime format
strings.
2) it replaces the web2py_ajax.html mechanism and there is no reason
to.

Probably the next version of T2 will not have web2py.js.
I suggest you copy the layout in your own app, include that instead
and modify it so that it uses your own web2py.js.

Massimo

On Jan 3, 12:35 pm, "Miguel Goncalves" <[email protected]>
wrote:
> Hi
>
> the following file refers to the "/plugins/static/t2/media" directory:
>     /plugin_t2/static/t2/scripts/web2py.js
>
> Some other scripts ( /plugin_t2/static/t2/scripts/edit_area/edit_area.js and
> edit_area_full.js and edit_area_loader.js) also refer to a "plugins/" when
> they create url paths.
>
> What is the best course of action?
> - create a "plugins" directory
> - try to remap access to those files by the yaml file
> - update the code to point to  the correct directory?
>
> Thanks
> Miguel
>
> On Fri, Jan 2, 2009 at 9:34 AM, mdipierro <[email protected]> wrote:
>
> > I will look into this but I cannot reproduce your problem. I do not
> > see how the wrong url can be generated. I believe that file is part of
> > fancyzoom.
>
> > Do you have an old version of plugin_t2?
>
> > I reposted the latest version in case I made a mistake in the past.
>
> > Massimo
>
> > On Jan 2, 11:06 am, "Miguel Goncalves" <[email protected]>
> > wrote:
> > > oops sent to fast... :)
>
> > > CRbox/
> > >   app.yaml
> > >   Applications/
> > >       admin
> > >       welcome
> > >       plugin_t2
>
> > > the content of my app.yaml is:
> > > application: web2py
> > > version: 1
> > > api_version: 1
> > > runtime: python
>
> > > handlers:
>
> > > - url: /(?P<a>.+?)/static/(?P<b>.+)
> > >   static_files: applications/\1/static/\2
> > >   upload: applications/(.+?)/static/(.+)
> > >   secure: optional
>
> > > - url: .*
> > >   script: gaehandler.py
> > >   secure: optional
>
> > > skip_files: |
> > >  ^(.*/)?(
> > >  (app\.yaml)|
> > >  (app\.yml)|
> > >  (index\.yaml)|
> > >  (index\.yml)|
> > >  (#.*#)|
> > >  (.*~)|
> > >  (.*\.py[co])|
> > >  (.*/RCS/.*)|
> > >  (\..*)|
> > >  ((admin|examples|welcome)\.tar)|
> > >  (applications/(admin|examples)/.*)|
> > >  )$
>
> > > Any ideas?
>
> > > Thanks
> > > Miguel
>
> > > On Fri, Jan 2, 2009 at 9:05 AM, Miguel Goncalves
> > > <[email protected]>wrote:
>
> > > > hi Massimo,
>
> > > > No I do not have an application called "plugin". My directory structure
> > is:
>
> > > > CARbox/
> > > >  Applications/
>
> > > > On Fri, Jan 2, 2009 at 12:35 AM, mdipierro <[email protected]
> > >wrote:
>
> > > >> I cannot figure out where that links is built in T2.
> > > >> Do you have an app called plugins?
>
> > > >> Massimo
>
> > > >> On Jan 2, 2:13 am, Miguel <[email protected]> wrote:
> > > >> > Hi
>
> > > >> > I am using T2 on GAE (dev_appserver for now) and have the following
> > > >> > error:
>
> > > >> > [Errno 2] No such file or directory: 'G:\\google_appengine\\CRBox\
> > > >> > \applications/plugins/static/t2/media/tl.png'
>
> > > >> > So the server cannot find the file tl.png in the specified path.
> > > >> > This is not surprising since the file really lives in:
> > > >> > G:\google_appengine\CRBox\applications\plugin_t2\static\t2\media
>
> > > >> > I am assuming the problem comes from the mapping defined in the yaml
> > > >> > file (which I did not modify yet).
> > > >> > What is the right way of fixing this?
>
> > > >> > Thanks
> > > >> > Miguel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to