Re: [Zope] Where oh where is Repozo

2006-01-16 Thread Håkan Johansson


On Jan 16, 2006, at 22:52, Jonathan Cyr wrote:

Does the Zope Wiki article on Repozo tell you where to find it, maybe 
I missed it.  I actually looked for quite a while.  Maybe it just 
needs to be a little clearer... or maybe I need a smack in the head.


 I didn't have much success anyway, I setup my Zope/ZEO setup using 
SuSE 9.0's onboard Python and PIL installs, which, at the time, seemed 
an easy way to reproduce a ZEO client machine over and over. 


 Upon running repozo, it can't find the pieces of Zope/ZODB, it needs 
to run, and I get an immediate traceback refering to the import of 
ZODB.   After trying to adjust the pythonpath (wouldn't stick), and 
trying to drop repozo in the right directory.  I couldn't get it to 
work.  And, frankly, with everything Zope/Python/PIL working fine, I 
didn't mess with it very hard, fearing breaking it.


 Using SuSE's YAST installed Python seems to be my mistake... but It 
made sense at the time, and the right versions and everything... and 
although it works, upgrading Zope and using repozo are major 
drawbacks.


 I'll have to build a new box, correctly, and migrate to it.

 In any case, thanks for your time,

 -Jon


I had the same problem with repozo. I "solved" it by modifying the 
repozo.py file and adding "sys.path.append( PATH/TO/ZOPE/lib/python )" 
right before the "from ZODB.FileStorage ..." line.

It's not a beautiful fix, but it works.

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


[Zope] MySql 5.0, ZMySQLDA and stored procedures

2006-01-16 Thread Cameron Beattie
I was getting the following error when attempting to call a stored procedure 
via a Z SQL Method:

_mysql_exceptions.OperationalError: (1312, etc

So I made the following change to 
/usr/lib/zope/lib/python/Products/ZMySQLDA/db.py:

   def _parse_connection_string(self, connection):
   kwargs = {'conv': self.conv,
'client_flag': 65536 #inserted by CSB
}

I then restarted Zope. I can now successfully call stored procedures. There 
may be a better way to do it. Feel free to advise if so.


Apologies if this information has already been posted.

Cameron 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Autoconnect with ZMySQLDA 2.0.9

2006-01-16 Thread Dennis Allison
I have been seeing occasional "release unlocked lock" errors from a 
storage error in a two-phase commit which really comes from a "Lost 
connection to MySQL server during query".  Apparently this arises from 
a failure of self.db.ping() to find a connected database as the 
transaction is opened.

It is possible that the connection has really timed out.

Looking at the code it appears that ZMySQLDA does not attempt to 
recreate the connection.  Is that correct? 

What's the recommend approach to re-establish the connection?

-d

-- 

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


Re: [Zope] Leave the ivory tower now!

2006-01-16 Thread Greg Fischer
>From Tino: --No matter if DTML is still there (and it will) we shouldfind better ways to teach people how to easy develope inZope.--Yes, you are right on all you mention.  I didn't know PT was available in other environments/languages.  Interesting.  However, I still don't want to use them.  Doesn't mean that someday I wont find a need and desire for it though.  
The reason I don't use PT is because I can do what I want without it.  You mention that better ways to teach is needed, and you are right about that, but when someone like me has no desire to learn it, then it wont help.  Worth noting though, I have looked at it briefly, and it confused the hell out of me. So, you may be right on anyway, because if it were explained in a such a way that caused me to just *get it*, then maybe I would go that route.  
I guess it's really a matter of, do I want to spend the time to learn something when I am loaded with other things to learn all the time, and why fix it if it isnt broke? (broke from my perspective ,that is.)
Well, why can't there also be good training on DTML as well?  (actually, I don't thinks it's all that bad anyway.)  And, like Gary asked, why can't there be a peaceful coexistence bewteen the ZPT and DTML fans?  The reason why I ask?  Because there is commonley someone saying *DTML sucks, use PT* when users ask questions about DTML.  (maybe not in those words, but you get the idea.)  
I don't know.  I do appreciate your responses and thoughts Tino. (as you have always done for me in the past)GregOn 1/16/06, Tino Wildenhain
 <[EMAIL PROTECTED]> wrote:Greg Fischer schrieb:
...> I like what you said, be tolerant.  Some of us don't see the limitations> of DTML as something that is broken, or that it is not good.  I don'tI see we have to improve teaching.> think there is anything wrong with ZPT either, I simply don't have a use
> for it.  Coexist? Yes, I hope they always do.>> Personally, I am doing more and more with PHP.  There are multiple> reasons for that, but partly it is due to a conception in the Zope> community that DTML is bad, and as such, it might go away. The *hype* is
> all about ZPT, not DTML.  I don't want to pursue a development platformYou can have PT with PHP too. Thats the cool part about it. Its reallykinda standard. You have PT for Zope, PHP, Perl, Java, ...
> that is a foundation of my applications on something that is going away,> or even hinting to it.  That might not be the case, might be totally> false.  But we cant deny the fact that if there is no hype, then there
> is no attention to it, and less people will use it and even less will> support it.I dont think thats the problem. I saw even weirder frameworksto work with. I guess we could introduce an even suckier template
language and people would fall in love with it.BTW: ZPT is not, and was never a replacement for DTML.DTML would be replaced by application logic in pythonor python scripts and ZPT together.No matter if DTML is still there (and it will) we should
find better ways to teach people how to easy develope inZope.++Tino-- Greg Fischer1st Byte Solutionshttp://www.1stbyte.com

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


Re: [Zope] Where oh where is Repozo

2006-01-16 Thread Jonathan Cyr




Does the Zope Wiki article on
Repozo tell you where to find it, maybe I missed it.  I actually looked
for quite a while.  Maybe it just needs to be a little clearer... or
maybe I need a smack in the head.

I didn't have much success anyway, I setup my Zope/ZEO setup using SuSE
9.0's onboard Python and PIL installs, which, at the time, seemed an
easy way to reproduce a ZEO client machine over and over.  

Upon running repozo, it can't find the pieces of Zope/ZODB, it needs to
run, and I get an immediate traceback refering to the import of ZODB.  
After trying to adjust the pythonpath (wouldn't stick), and trying to
drop repozo in the right directory.  I couldn't get it to work.  And,
frankly, with everything Zope/Python/PIL working fine, I didn't mess
with it very hard, fearing breaking it.

Using SuSE's YAST installed Python seems to be my mistake... but It
made sense at the time, and the right versions and everything... and
although it works, upgrading Zope and using repozo are major drawbacks.

I'll have to build a new box, correctly, and migrate to it.

In any case, thanks for your time,

-Jon

Tim Peters wrote:

  [Jonathan Cyr]
  
  
Where is the latest version of Repozo, the backup tool, kept?

Is there a reason, that it's not included with the Zope
install/utilities (at least the 2.7.x I'm using).

  
  
[... time passes ...]

  
  
Thanks for the quick response, I noticed that the my WinXP Zope
(sandbox) doesn't have it, but my production SuSE Linux does.

  
  
It's in my WinXP Zope-2_7-branch sandbox:

C:\Code\Zope-2_7-branch>dir/b utilities\ZODBTools\rep*
repozo.py

It's also in Zope 2.8 branch, 2.9 branch, and current Zope trunk.

For some reason (oversight?), Zope3 does not include ZODB tools, but
you should find them in every flavor of Zope2 (and of course a CVS or
SVN sandbox gets you the same stuff no matter which platform you use
to do the checkout).
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

  


-- 
Jonathan Cyr
http://www.cyr.info
http://www.weddingweblog.com
[EMAIL PROTECTED]


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


Re: [Zope] Leave the ivory tower now!

2006-01-16 Thread Tino Wildenhain
Greg Fischer schrieb:
...
> I like what you said, be tolerant.  Some of us don't see the limitations
> of DTML as something that is broken, or that it is not good.  I don't

I see we have to improve teaching.

> think there is anything wrong with ZPT either, I simply don't have a use
> for it.  Coexist? Yes, I hope they always do.
> 
> Personally, I am doing more and more with PHP.  There are multiple
> reasons for that, but partly it is due to a conception in the Zope
> community that DTML is bad, and as such, it might go away. The *hype* is
> all about ZPT, not DTML.  I don't want to pursue a development platform

You can have PT with PHP too. Thats the cool part about it. Its really
kinda standard. You have PT for Zope, PHP, Perl, Java, ...

> that is a foundation of my applications on something that is going away,
> or even hinting to it.  That might not be the case, might be totally
> false.  But we cant deny the fact that if there is no hype, then there
> is no attention to it, and less people will use it and even less will
> support it.

I dont think thats the problem. I saw even weirder frameworks
to work with. I guess we could introduce an even suckier template
language and people would fall in love with it.

BTW: ZPT is not, and was never a replacement for DTML.
DTML would be replaced by application logic in python
or python scripts and ZPT together.

No matter if DTML is still there (and it will) we should
find better ways to teach people how to easy develope in
Zope.

++Tino
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Leave the ivory tower now!

2006-01-16 Thread Greg Fischer
I took part in an old thread from here from several months ago:http://www.gossamer-threads.com/lists/zope/users/184052?do=post_view_threaded
In there, some of the prominent members from this list came up with some great points on the DTML vs ZPT thing.  All great stuff.  However, I agree with you.  While some of the ZPT fans say that DTML is broke and it sucks, and from there perspective it might, for some of us DTML is great and we have no desire to use ZPT.  For us, DTML is not broke.
I like what you said, be tolerant.  Some of us don't see the limitations of DTML as something that is broken, or that it is not good.  I don't think there is anything wrong with ZPT either, I simply don't have a use for it.  Coexist? Yes, I hope they always do.
Personally, I am doing more and more with PHP.  There are multiple reasons for that, but partly it is due to a conception in the Zope community that DTML is bad, and as such, it might go away. The *hype* is all about ZPT, not DTML.  I don't want to pursue a development platform that is a foundation of my applications on something that is going away, or even hinting to it.  That might not be the case, might be totally false.  But we cant deny the fact that if there is no hype, then there is no attention to it, and less people will use it and even less will support it.
Now don't get me wrong about that last paragraph, I LOVE ZOPE!  It just does things so easily that other environments have to struggle with. (Acquisition being one of them.  Which also is something that people say is broke in some ways.  It does do weird things sometimes. But if you know how to deal with them... ;)
I hope my opinions are of help to others. (just remember, these are just my opinions, to those to might be ready to slam me for them. I intend no offense.)GregOn 1/16/06, 
garry <[EMAIL PROTECTED]> wrote:
Nicolas Georgakopoulos wrote:> Rakotomandimby Mihamina wrote:>>> On Mon, 2006-01-09 at 14:29 +0100, Garito wrote:>>> I thing DTML and ZClasses will disapear someday
> You think, I hope :-)>> I beg ;-)  .> ___Can someone explain why there is a continual battle between those who
like dtml and those who like zpt?Surely the two can co-exist and then individual developers can choosewhich most suits them. Neither seems to be broken and both provide avalid experience for users, so let's be tolerant. :-)
regardsGarry___Zope maillist  -  Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce 
http://mail.zope.org/mailman/listinfo/zope-dev )-- Greg Fischer1st Byte Solutionshttp://www.1stbyte.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ANN: ZSyncer 0.7.1-beta1 released

2006-01-16 Thread Paul Winkler
On Mon, Jan 16, 2006 at 07:48:45PM +0100, Dieter Maurer wrote:
> Synchronization modifies "bobobase_modification_time" on the target.

Yep.
 
> A safe method to check whether you have a current state is to
> register the "bobobase_modification_time" (on source and target)
> that resulted from the synchronization.
> A resynchronization is necessary when the "bobobase_modification_time"
> moved away from the registered "sync_bobobase_time"s.

Ahhh, now I see. Thank you, this is probably cheaper than
most of my ideas.
I could store that info in a BTree of some flavor.

-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ANN: ZSyncer 0.7.1-beta1 released

2006-01-16 Thread Dieter Maurer
Paul Winkler wrote at 2006-1-15 17:28 -0500:
> ...
>> >Yes.  These are limitations of comparing objects that have only
>> >a bobobase_modification_time timestamp.
>> >See ZSyncer/README.txt, in the "Usage" section.
>> >
>> >Solving this problem is hard. See ZSyncer/TODO.txt.
>> 
>> You should remember the synchronized "bobobase_modification_time"s
>> (this may cost an additional (small) request).
>
>I'm sorry, I can't seem to understand what you mean.

Synchronization modifies "bobobase_modification_time" on the target.

A safe method to check whether you have a current state is to
register the "bobobase_modification_time" (on source and target)
that resulted from the synchronization.
A resynchronization is necessary when the "bobobase_modification_time"
moved away from the registered "sync_bobobase_time"s.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Leave the ivory tower now!

2006-01-16 Thread garry

Nicolas Georgakopoulos wrote:


Rakotomandimby Mihamina wrote:


On Mon, 2006-01-09 at 14:29 +0100, Garito wrote:
 


I thing DTML and ZClasses will disapear someday




You think, I hope :-)

  


I beg ;-)  .
___


Can someone explain why there is a continual battle between those who 
like dtml and those who like zpt?
Surely the two can co-exist and then individual developers can choose 
which most suits them. Neither seems to be broken and both provide a 
valid experience for users, so let's be tolerant. :-)

regards
Garry

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Leave the ivory tower now!

2006-01-16 Thread Nicolas Georgakopoulos

Rakotomandimby Mihamina wrote:

On Mon, 2006-01-09 at 14:29 +0100, Garito wrote:
  

I thing DTML and ZClasses will disapear someday



You think, I hope :-)

  

I beg ;-)  .
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] wrong directoy in Control_Panel.Products.XXXX.home

2006-01-16 Thread Luca Olivetti

En/na Dieter Maurer ha escrit:


Zope's behaviour in handling product updates below "Control_Panel.Products"
is very difficult to understand.


;-)
It usually freaks me out when I (seldom) delete a product from the 
filesystem and it's still there in the control panel..



Almost surely, it will help when you delete all "closed" products
there and then restart Zope. The restart will recreate the product objects
for installed products -- hopefully with the correct "home" attribute.


yes, as I said in the original message this is what I did. I was just 
asking if this is the expected behaviour of Control_Panel (which could 
break products using the home attribute, like in my case 
CMFQuickInstaller) and if there is a better(?) way that doesn't involve 
deleting the products and restarting zope.


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Authorization Problems while using manage_addFile()

2006-01-16 Thread Andreas Jung



--On 16. Januar 2006 14:02:22 +0530 Varun Bhansaly 
<[EMAIL PROTECTED]> wrote:



We have imported a zope application from another machine.
After starting the application we are unable to create a file using
using the API manage_addFile(),which is strange because we are being
able to use the API manage_delObjects() to delete an existing object.



VerboseSecurity can tell you why this error occurs...

-aj




pgpd8jS4hKk10.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Authorization Problems while using manage_addFile()

2006-01-16 Thread Varun Bhansaly
We have imported a zope application from another machine.
After starting the application we are unable to create a file using
using the API manage_addFile(),which is strange because we are being
able to use the API manage_delObjects() to delete an existing object.

This is the Error we have encountered..

***
Site Error
An error was encountered while publishing this resource. 

Unauthorized

Sorry, a site error occurred.

Traceback (innermost last):

  * Module ZPublisher.Publish, line 175, in publish_module_standard
  * Module Products.iHotfix, line 88, in new_publish
  * Module ZPublisher.Publish, line 132, in publish
  * Module Zope.App.startup, line 204, in zpublisher_exception_hook
  * Module ZPublisher.Publish, line 101, in publish
  * Module ZPublisher.mapply, line 88, in mapply
  * Module ZPublisher.Publish, line 39, in call_object
  * Module Shared.DC.Scripts.Bindings, line 306, in __call__
  * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  * Module Products.PythonScripts.PythonScript, line 323, in _exec
  * Module None, line 4, in reset_tab

Line 4
  * Module Shared.DC.Scripts.Bindings, line 306, in __call__
  * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  * Module Products.PythonScripts.PythonScript, line 323, in _exec
  * Module None, line 1, in refresh_tab

Line 1
  * Module Shared.DC.Scripts.Bindings, line 306, in __call__
  * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  * Module Products.PythonScripts.PythonScript, line 323, in _exec
  * Module None, line 9, in update_result

Line 9
Unauthorized: You are not allowed to access 'manage_addFile' in this
context (Also, an error occurred while attempting to render the standard
error message.)

***

We have tried changing all the security permissions,we have even logged
in administrator but this too has been of no use.

We are using 
Zope Version  (Zope 2.7.8-final, python 2.4.0) 
Python Version 2.4 

Thanks


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