AW: Re: Unique Ids?

"Dr. Frank Hoffmann" <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Message-ID <25FFE06AE2434E87AD5640C1DC65A175@hal1>
Hello to Linz,
finally there some more lines of code (ConfManager.getSequence). Please try
the latest Build
http://bscw.hoffmannliebenberg.de/pub/bscw.cgi/d454265/zms-2.11.1.tar.gz
2009-01-22:zms-2.11.1-36 
--------------------------------------------------
2009-01-22:zms-2.11.1-36
[01153] Added support for ZMySQLDA-3.0.
[01154] Added support for unique object-ids in portal/clients.
--------------------------------------------------


Thank you very much for the idea
and best regards
fh  

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Im Auftrag von Peter Zechmeister
Gesendet: Mittwoch, 21. Januar 2009 13:09
An: [email protected]
Betreff: Re: [zms-developers] Re: Unique Ids?

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


------------------------------------

Yahoo! Groups Links
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.