| View previous topic :: View next topic |
| Author |
Message |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
Posted: Tue 26 Feb, 2008 17:06 Post subject: the new internal pages structure... |
|
|
One of most important requests is the restructuring of the internal pages. Two points:
-The data should not stored into the database.
-The additional Stylesheet/JavaScript content should not included directly into the html page. The Server should handle these files, as normal static file requests (Include with <link href=...> and <script src=...>)
I started implementing this. There is more changes necessary than I thought.
I moved any internal page files into the directory ./media/PyLucid/internal_page/ (In a subdirectory named as the plugin name).
If a user will customize a internal page, he must made a copy of the html,css and js files into ./media/PyLucid/customized_internal_page/ (Also in a subdir)
I need to tidy up some path settings. So this changes are bigger than small updates.
I think i can commit the changes tomorrow... _________________
http://www.jensdiemer.de | http://www.htfx.de | http://www.python-forum.de
|
|
| Back to top |
|
 |
rantaaho
Joined: 09 Jan 2008 Posts: 47 Location: Kuopio, Finland
|
Posted: Tue 26 Feb, 2008 19:36 Post subject: |
|
|
Great!
But "customized_internal_page" is a quite horrible name for a directory, could it be that default templates are under ./media/PyLucid/internal_pages and customized under./media/internal_pages? |
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
rantaaho
Joined: 09 Jan 2008 Posts: 47 Location: Kuopio, Finland
|
Posted: Wed 27 Feb, 2008 09:47 Post subject: |
|
|
Well my logic was that under ./media/PyLucid/ would be the files which are shipped with PyLucid and any customized files would be "user's own" outside PyLucid-directory.
But maybe it is clearer if all PyLucid related file are under ./media/PyLucid. One solution could be that all customized files are under ./media/PyLucid/local/ or ./media/PyLucid/custom/. It may seems as unnecessary step folder, but IMHO it is clearer that way. |
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
Posted: Wed 27 Feb, 2008 21:52 Post subject: |
|
|
Ha! I have a great new Idea related to this. I have implement it quick, see: http://trac.pylucid.net/changeset/1452
Why not save the global Stylesheet into the media dir, too? So the webserver can handle this file, too.
There exist a fall back, if PyLucid can't save the file in the filesystem (Run as CGI with user 'nobody'). In this case, everything remains the same: PyLucid handle the fake-file reuqest via _command -> two request for one page... _________________
http://www.jensdiemer.de | http://www.htfx.de | http://www.python-forum.de
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
|