[Zope-dev] hard coded paths in pickles

2003-07-08 Thread kosh
I have been trying to clean up the structure in my python product and I find 
that if I move any file zope can no longer load the object associated with 
that file but new objects created work just fine. Unforunatley that is not an 
option since I have a lot of old data that I need to keep. Is there a 
solution to this problem that is feasible or with zope once you place a file 
at some location you can't ever move it. If it is true that once a file is at 
some location it can't be moved surely this needs to be fixed since it would 
make it very hard for long projects since they could not clean up the layout 
of the project over time as things change.

Thanks

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] plone styles in my zpt macros file

2003-07-08 Thread Exteam
hi,
i have installed plone in my linux box which installed
zope.
now i have a folder abc in root (/abc).
i have a ZPT macros file in abc starting with 
the first  line as:
--div metal:define-macro=my_macro1--

now i want to call plone's header  footer files
written in dtml. these files are stored in the
/portal_skins/plone_templates .
how do i call them in my ZPT macros file?
i had used 

--div tal:content=structure
here/standard_html_header--

to call the header.it actually calls the header, but
gives style sheet errors in the page like 
document.all.content.style is not null or an object.
More over it doesn't display any of the content
present in the ZPT macros file.
But in the same way another dtml method in the same
directoy called check_status does the same job.
ie calls the same header file using the following
statement
--dtml-var standard_html_header--.
It works perfeclty here.
what is the problem? why doesn't it work in  the ZPT
file?
Please help me
thanks
exteam


Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] easy to fix bugs present in 2.7.0a1

2003-07-08 Thread Stefan H. Holek
On a related note let me say that absolute_url() is suffering from much the 
same problem. Calling absolute_url(1) will give surprising results in the 
presence of _vh_xyz!

I have already tried to make some noise about that but failed to 
sufficiently make my point. http://collector.zope.org/Zope/809

Stefan

--On Sonntag, 06. Juli 2003 13:17 -0700 Jamie Heilman 
[EMAIL PROTECTED] wrote:

Jamie Heilman wrote:
Collector issue 799, dtml-tree still uses SCRIPT_NAME to generate the
base path for its plus and minus images, SCRIPT_NAME breaks badly when
Zope is proxied and has been discouraged since what... Zope 2.3 I
believe.  The patch changes dtml-tree so it uses BASEPATH1 which works
correctly.
I gather this bug has been lurking for so long because its probably
not seen very often; it depends on how you set up zope, but here's a
way to reproduce it, lest anyone think its not a real bug:
using mod_rewrite+mod_proxy set up a path to access the root of
zope-space which doesn't map to the root of apache's web space:
RewriteRule ^/zope(.*)
http://127.0.0.1:8080/VirtualHostBase/http/example.com:80/VirtualHostRoot
/_vh_zope$1 [P,L]
Everything works, except the +/- icons used by dtml-tree, with the
patch, they work too.  Looking at doc/HISTORY.txt we see that most of
the SCRIPT_NAME-BASEPATH1 changes happend for Zope 2.3.0 alpha 1, but
this one got missed.


--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is.   /Pete McBreen/
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] hard coded paths in pickles

2003-07-08 Thread Chris McDonough
Use __module_aliases__: 

http://mail.zope.org/pipermail/zope-dev/2001-October/013636.html 

On Tue, 2003-07-08 at 02:31, kosh wrote: 
 I have been trying to clean up the structure in my python product and I find 
 that if I move any file zope can no longer load the object associated with 
 that file but new objects created work just fine. Unforunatley that is not an 
 option since I have a lot of old data that I need to keep. Is there a 
 solution to this problem that is feasible or with zope once you place a file 
 at some location you can't ever move it. If it is true that once a file is at 
 some location it can't be moved surely this needs to be fixed since it would 
 make it very hard for long projects since they could not clean up the layout 
 of the project over time as things change.
 
 Thanks
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )