Re: [Zope-dev] Data.fs

2000-08-19 Thread Chris McDonough

> Surely this raises some data integrity issues if you copy in 
> mid-transaction?  Or does an incomplete transaction at the end of the db 
> just get thrown out, and the design of the db assure that only the end of 
> the file gets updated?

An incomplete transaction at the end of Data.fs gets ignored and
is subsequently overwritten by the next new transaction.  Data is always
appended to the file.


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




Re: [Zope-dev] Data.fs

2000-08-19 Thread Ross Boylan

At 12:41 PM 8/18/2000, Dieter Maurer wrote:
>Andre Schubert writes:
>
>  > and can i backup the Data.fs when Zope is running. 
>Yes. Just copy it.
>
>
>
>Dieter

Surely this raises some data integrity issues if you copy in 
mid-transaction?  Or does an incomplete transaction at the end of the db 
just get thrown out, and the design of the db assure that only the end of 
the file gets updated?


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




[Zope-dev] Replacing a manage_ methods with a callable object

2000-08-19 Thread Johan Carlsson


Hi,
I'm trying to replace a manage_x method with a
object instanciated (x) in the class fo the object being
managed.

That seems to work alright but the management tabs get
when x is called.

What I realy want is a way to get the REQUEST as if the last
traversal was never occured. (unfortunatly it's not in my reach
because it's done in the parent of the "my_published_object" object).
It needs to be reverted one step maybe before calling 
self.aq_parent.manage_tabs (basicly its the only place I need it 
att this point).

Also are there any potential pitfall's in doing that I'm doing?

Best Regards,
Johan Carlsson

class my_manage_class(...):
"""doc sting"""
_isBeingUsedAsAMethod_=1   # this doesn't work the way I hope it would :-(
_isBeingUsedAsAMethod # what's the differense between the two?

index_html = HTMLFile(some default DTML calling manage_tabs)

def manage_tabs(self):
# doesn't realy change the REQUEST context, coold that be done?
return self.aq_parent.manage_tabs(self.aq_parent,self.REQUEST)  


class my_published_object(...):
"""doc sting"""
manage_main = my_manage_class()

manage_options=(this is the options i also want to use in manage_main)



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