Re: Re: Unique Ids?

Peter Zechmeister <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Message-ID <[email protected]>
Dear Mr. Hoffmann,

to provide unique ids whithin a multisite, I've got another idea. I
modified _confmanager.py in this way (just two more lines):

--------------------------------------------------------------------------
    #  ConfManager.getSequence:
    #
    #  Returns sequence.
    #
--------------------------------------------------------------------------
    def getSequence(self):
      id = 'acl_sequence'
      if id not in self.objectIds(['Sequence']):

        # peterz Weboffice 090121
        ob = getattr(self.getPortalMaster(), id, None)
        if ob: return ob
        # /peterz

        sequence = _sequence.Sequence()
        self._setObject(sequence.id, sequence)
      ob = getattr(self,id)
      return ob

So you can delete acl_sequence in Z-view in subordinate ZMS-nodes with
the effect, that ids get generated by the portal master ZMS-node for
subnodes too.

Please give your feedback, if this could be dangerous in any way and if
this could be an improvement for future releases?

Regards
PeterZ, JKU

ZMS: ZMS 2.11.0-34  (Build #131d)


Am Dienstag, den 20.01.2009, 14:18 +0000 schrieb Dr. Frank Hoffmann:
> In a multisite it is recommended to set individual starting numbers 
> via ../content/acl_sequence/manage to unify the ids i.e. for
> embedding. 


> 
> Best Regards
> fh, moderator
> 
> 
> 
> 
>  
-- 
Die Fabrik der Zukunft wird nur zwei Angestellte haben: einen Mann und
einen Hund. Der Mann ist dafür da, den Hund zu füttern. Der Hund ist
dafür da, den Mann daran zu hindern, den Computer zu berühren.
W. G. Bennis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.