W dniu 25.07.2012 23:28, Łukasz Mach pisze:
W dniu 25.07.2012 21:11, Łukasz Mach pisze:
I'm trying to figure out what makes disclosurePanelOpen.png and
disclosurePanelClose.png appear automatically in my output/ folder.
I didn't see any "this file is for copy when class is imported" spec
... where is it defined?
I have found them. It's in library/pyjamas/ui/public . In other words
- contents of public folder of module X is copied to output/ , if
module X is imported somewhere.
Now, when I know it - I'm curious how to solve following problem:
- application (nonpyjamas) url is http://localhost/app/ - which is
/var/www/app/
- pyjamas code is compiled into /var/www/app/lib/pyjs/ . bootstrap.js
and disclosurePanelOpen.png lies there.
- I include app .js by <script src='lib/pyjs/bootstrap.js'> ...
How to convince pyjamas compiled code, to use disclosurePanelOpen.png
from http://localhost/app/lib/pyjs/disclosurePanelOpen.png , not from
http://localhost/app/disclosurePanelOpen.png (404 not found) ?
Now I know it also :). DisclosurePanel uses getImageBaseURL to get base
url of .js file.
So, I modified Calendar.py to include icon-calendar.gif by default -
here is commit:
https://github.com/mahomahomaho/pyjs/commit/64299dbb4558fbd8d3b2772108675af9da70e2a3
.
I didn't do pull request about it, because there is already pending pull
request from this repo, so I'm not able to do it.
However - i'm not 100% sure if my changes are ok. I don't know if they
will work well with pyjd - I can't check because I still couldn't build
pyjd with my ubuntu 12.04 (well, I didn't try very hard).
regards
Maho
--
pozdrawiam
Łukasz Mach - lukasz.m...@pagema.net
--