Dale DeWitt | 1 May 2007 02:36
Picon

Defragmenting ZODB?


Does anyone have familiarity with defragmenting the ZODB Data.fs? 
http://wiki.zope.org/ZODB/FileStorageBackup "Because a FileStorage grows one
transaction at a time, and transactions can be small, under some filesystem
implementations a FileStorage can become badly fragmented quickly. For
example, I've observed bad FileStorage fragmentation under NTFS (the
high-end native Windows filesystem). Fragmentation can grossly increase the
time it takes to seek to an object's data record in the file, so can grossly
increase object load times. So if you're using a filesystem that's prone to
fragmentation, defragment your .fs files regularly."  I don't hear much
mention of this practice in performance tweaking so thought I'd ask.  Dale  
--

-- 
View this message in context: http://www.nabble.com/Defragmenting-ZODB--tf3672841s6742.html#a10262998
Sent from the General Questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Jon Stahl | 1 May 2007 03:30
Gravatar

Re: PostNuke/phpBB to Plone/PloneBoard


It's working, so far as we know.  Please let us know if it isn't.

best,
jon
------
Jon Stahl
ONE/Northwest
www.onenw.org
--

-- 
View this message in context: http://www.nabble.com/PostNuke-phpBB-to-Plone-PloneBoard-tf3633151s6742.html#a10263405
Sent from the General Questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Ricardo Newbery | 1 May 2007 04:21

Re: is there a 'getPath' that doesn't give you the virtual host name? (fwd)

At 9:02 PM +1000 4/30/07, e deleflie wrote:
>  > >>In a python script, do something like...
>>  >>
>>  >>from Products.CMFCore.utils import getToolByName
>>  >>portal_url = getToolByName(context, 'portal_url')
>>  >>portal_path = '/'.join(portal_url.getPortalObject().getPhysicalPath())
>>  >>uri = catalog_result.getPath()[len(portal_path):]
>>  >>
>>  >Something like that or just use the string replace() method.
>>  >
>>  >-aj
>>
>>
>>  Sure, but to be safe, remember to replace only the first match...
>>
>>    uri = catalog.result.getPath().replace(portal_path, '', 1)
>
>that will do what I need .... thanks guys.
>
>I was hopping there might be a way to avoid doing that many operations
>... somethign a bit simpler.
>
>My use case is basically to implement a web2.0 style ratings widget...
>this one in particular: http://js-kit.com/
>
>... where a unique path is required to identify the item that is being
>rated. The path cant be absolute ... and it doesn't make much sense to
>have the name of the virtual host in there...
>
>Etienne
(Continue reading)

BarryPage | 1 May 2007 04:23
Picon

Re: PostNuke/phpBB to Plone/PloneBoard


I think they may be delighted with Plone but a bit underwhelmed by
PloneBoard. The (nabble) forum however is brilliant - is it available as a
Plone Product?

Sean F wrote:
> 
> I've got a client who's interested in moving a PostNuke/phpBB community
> site over to Plone/PloneBoard.
> 

--

-- 
View this message in context: http://www.nabble.com/PostNuke-phpBB-to-Plone-PloneBoard-tf3633151s6742.html#a10263747
Sent from the General Questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Arryn Pidwell | 1 May 2007 04:31
Picon

Returning html from an external method

Hi,

I've written an external method that returns a string of html.
However, when I call the method in a page template, the html is
encoded or quoted as text rather than rendered html. Can I get round
this?

This problem is probably the result of me not knowing how to pass
parameters to an external method or how to access a non-string (eg. a
list or dictionary) that is returned to a page template by the
external method.

Hopefully someone can point me in the right direction.

Thanks,
-Arryn Pidwell

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Michael Rowley | 1 May 2007 04:39
Picon
Favicon

List not behaving as expected

Hello all,
Using
	MacosX 10.4
	Python 2.4.4,
	Zope 2.9.4
	Plone 2.5.2
	Archetypes 1.4

Have a Archetype 'Code', that has a field of 'Order' that gives me a  
sort order for the codes...  the object works well, but having some  
difficulties with a reorder method.  Here is what I have now.  Order  
is from 1 to ..., when i change the Order of one of my objects, it  
calls:

	codes = sorted(encounter.objectValues('Code'))
	
then remove our current object from the list:

	codes.remove(self)
	
now our current code object back into the list:
	
	codes.insert(order - 1, self)

now reset our order:

	for code in codes:
		codes.setOrder(codes.index(code) +1)

Where this fails is that when I try and remove the 'self' object, it  
(Continue reading)

Arryn | 1 May 2007 06:53
Picon

Returning HTML from External method


Hi,

I've written an external method that returns a string of html.
However, when I call the method in a page template, the html is
encoded or quoted as text rather than rendered html. Can I get round
this?

This problem is probably the result of me not knowing how to pass
parameters to an external method or how to access a non-string (eg. a
list or dictionary) that is returned to a page template by the
external method.

Hopefully someone can point me in the right direction.

Thanks,
-Arryn Pidwell
--

-- 
View this message in context: http://www.nabble.com/Returning-HTML-from-External-method-tf3673429s6742.html#a10264654
Sent from the General Questions mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
robert rottermann | 1 May 2007 06:57
Picon
Favicon

Re: Returning HTML from External method

Arryn wrote:
> Hi,
>
> I've written an external method that returns a string of html.
> However, when I call the method in a page template, the html is
> encoded or quoted as text rather than rendered html. Can I get round
> this?
>
> This problem is probably the result of me not knowing how to pass
> parameters to an external method or how to access a non-string (eg. a
> list or dictionary) that is returned to a page template by the
> external method.
>
> Hopefully someone can point me in the right direction.
>
> Thanks,
> -Arryn Pidwell
>   
<div tal:content="structure content_of_your_external_method"/>

HTH
robert
Attachment (robert.vcf): text/x-vcard, 229 bytes
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
(Continue reading)

Andreas Jung | 1 May 2007 07:25

Re: Defragmenting ZODB?


--On 30. April 2007 17:36:15 -0700 Dale DeWitt
<dewittdale@...> wrote:

>
> Does anyone have familiarity with defragmenting the ZODB Data.fs?
> http://wiki.zope.org/ZODB/FileStorageBackup "Because a FileStorage grows
> one transaction at a time, and transactions can be small, under some
> filesystem implementations a FileStorage can become badly fragmented
> quickly. For example, I've observed bad FileStorage fragmentation under
> NTFS (the high-end native Windows filesystem). Fragmentation can grossly
> increase the time it takes to seek to an object's data record in the
> file, so can grossly increase object load times. So if you're using a
> filesystem that's prone to fragmentation, defragment your .fs files
> regularly."

The ZODB has nothing to do with the underlying filesystem. The only
thing you can do is 'packing' the ZODB. Google, read on plone.org
and any other related Zope documentation on 'packing' the ZODB.

-aj
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Plone-Users mailing list
(Continue reading)

Justizin | 1 May 2007 07:25

Re: Defragmenting ZODB?

The simplest, most fundamental way to defragment any large file or
volume is to create a semantic copy of it and to rewrite.  For a file
like Data.fs, you can copy it to another volume, remove it from the
original, and write it out.  Ideally, you can place it on its' own
otherwise empty volume so that this exercise begins writing at the
beginning of the volume, writes out, and then allows a consecutive
transaction log.  It does follow that it would be wise to do this
whenever packing, though it may be time consuming.

I don't know of any tools specifically for defragmenting a Data.fs
itself.  FYI, for a data volume, you would create a copy with
something like tar or zip, format or erase, then extract, which is
what I mean by a semantic copy.  For something like Data.fs you only
have one file and the best way to ensure it is not fragmented somehow
is to put it alone on an otherwise empty volume which is periodically
zeroed out.

That said, I don't know that this is a significant problem for anyone.
 I rearrange the entire server, or move ZEO from one host to another,
periodically, simply in practice.  Beyond fragmentation of data and
whatnot, it's good to change machine roles and to keep each physical
part of each machine doing somthing slightly different from time to
time.

On 4/30/07, Dale DeWitt <dewittdale@...> wrote:
>
> Does anyone have familiarity with defragmenting the ZODB Data.fs?
> http://wiki.zope.org/ZODB/FileStorageBackup "Because a FileStorage grows one
> transaction at a time, and transactions can be small, under some filesystem
> implementations a FileStorage can become badly fragmented quickly. For
(Continue reading)


Gmane