pli-devel Mailing List for pli
Status: Pre-Alpha
Brought to you by:
alex_nanou
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
(10) |
Apr
(17) |
May
(24) |
Jun
(6) |
Jul
(29) |
Aug
(79) |
Sep
(51) |
Oct
(32) |
Nov
(6) |
Dec
(20) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(6) |
Feb
(4) |
Mar
(9) |
Apr
(6) |
May
|
Jun
(3) |
Jul
(4) |
Aug
(26) |
Sep
(23) |
Oct
(11) |
Nov
(2) |
Dec
(9) |
| 2006 |
Jan
(10) |
Feb
(6) |
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(10) |
Aug
|
Sep
|
Oct
|
Nov
(6) |
Dec
|
| 2007 |
Jan
(13) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(25) |
Aug
(6) |
Sep
(2) |
Oct
(13) |
Nov
(20) |
Dec
(9) |
| 2008 |
Jan
(20) |
Feb
(21) |
Mar
(22) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Alex A. N. <ale...@us...> - 2008-03-09 14:23:19
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5707 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.181 retrieving revision 1.182 diff -C2 -d -r1.181 -r1.182 *** CHANGES 9 Mar 2008 10:26:04 -0000 1.181 --- CHANGES 9 Mar 2008 14:23:23 -0000 1.182 *************** *** 1,3 **** ! # this file was generated on [200803091324] pli changes: --- 1,3 ---- ! # this file was generated on [200803091722] pli changes: |
|
From: Alex A. N. <ale...@us...> - 2008-03-09 14:23:19
|
Update of /cvsroot/pli/pli-devel/pli/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5707/pli/net Modified Files: rpcsession2.py Log Message: Index: rpcsession2.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/net/rpcsession2.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** rpcsession2.py 9 Mar 2008 10:26:05 -0000 1.6 --- rpcsession2.py 9 Mar 2008 14:23:24 -0000 1.7 *************** *** 2,6 **** __version__ = '''0.3.00''' ! __sub_version__ = '''20080309132348''' __copyright__ = '''(c) Alex A. Naanou 2008''' --- 2,6 ---- __version__ = '''0.3.00''' ! __sub_version__ = '''20080309171942''' __copyright__ = '''(c) Alex A. Naanou 2008''' *************** *** 703,707 **** if self.__is_global_method__(path[-1]): return self.__call_global__(SID, path, *p, **n) ! super(SessionManagerWithGlobalMethodsMixin, self)._dispatch(SID, path, *p, **n) def __is_global_method__(self, name): --- 703,707 ---- if self.__is_global_method__(path[-1]): return self.__call_global__(SID, path, *p, **n) ! return super(SessionManagerWithGlobalMethodsMixin, self)._dispatch(SID, path, *p, **n) def __is_global_method__(self, name): *************** *** 766,780 **** class O(object): def test(self): ! pass def meth(self, *p, **n): print 'o.meth', p, n def _meth(self): print 'o._meth' class S(BaseSession): def meth(self, *p, **n): print 'o.meth', p, n def _meth(self): print 'o._meth' s = S() --- 766,784 ---- class O(object): def test(self): ! return 123 def meth(self, *p, **n): print 'o.meth', p, n + return 123 def _meth(self): print 'o._meth' + return 123 class S(BaseSession): def meth(self, *p, **n): print 'o.meth', p, n + return 123 def _meth(self): print 'o._meth' + return 123 s = S() *************** *** 784,789 **** --- 788,795 ---- def meth(self, *p, **n): print 'dfl.meth', p, n + return 123 def _meth(self): print 'dfl._meth' + return 123 class TestSessionManager(SessionManager): *************** *** 832,836 **** sm.dispatch(['logout'], sid) ! sm.dispatch(['meth'], 1, 2, m=6) # in this case the system can not reliably say that the argument is --- 838,842 ---- sm.dispatch(['logout'], sid) ! print sm.dispatch(['meth'], 1, 2, m=6) # in this case the system can not reliably say that the argument is |
|
From: Alex A. N. <ale...@us...> - 2008-03-09 10:26:02
|
Update of /cvsroot/pli/pli-devel/pli/tags In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19803/pli/tags Modified Files: path.py tag.py Log Message: Index: tag.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/tag.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** tag.py 8 Mar 2008 15:57:11 -0000 1.16 --- tag.py 9 Mar 2008 10:26:05 -0000 1.17 *************** *** 2,6 **** __version__ = '''0.0.01''' ! __sub_version__ = '''20080307153553''' __copyright__ = '''(c) Alex A. Naanou 2007''' --- 2,6 ---- __version__ = '''0.0.01''' ! __sub_version__ = '''20080308225241''' __copyright__ = '''(c) Alex A. Naanou 2007''' *************** *** 100,104 **** here directly. ''' - ##!!! is this pretty? __tag_engine__ = tags --- 100,103 ---- Index: path.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/path.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** path.py 2 Feb 2008 18:04:34 -0000 1.5 --- path.py 9 Mar 2008 10:26:05 -0000 1.6 *************** *** 2,7 **** __version__ = '''0.0.01''' ! __sub_version__ = '''20080128022740''' ! __copyright__ = '''(c) Alex A. Naanou 2003''' --- 2,7 ---- __version__ = '''0.0.01''' ! __sub_version__ = '''20080309024328''' ! __copyright__ = '''(c) Alex A. Naanou 2007-''' *************** *** 30,34 **** ##!!!!!! ## if name in ('__getstate__', '__setstate__', '__reduce__', '__reduce_ex__', '__slots__'): - ## ##!!! what should we do here??? ## return object.__getattribute__(self._root, name) return self.__class__(self._root, self._path + (name,), self._callback, self._verify) --- 30,33 ---- |
|
From: Alex A. N. <ale...@us...> - 2008-03-09 10:26:02
|
Update of /cvsroot/pli/pli-devel/pli/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19803/pli/net Modified Files: rpcsession2.py Log Message: Index: rpcsession2.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/net/rpcsession2.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** rpcsession2.py 8 Mar 2008 15:57:11 -0000 1.5 --- rpcsession2.py 9 Mar 2008 10:26:05 -0000 1.6 *************** *** 2,6 **** __version__ = '''0.3.00''' ! __sub_version__ = '''20080308185500''' __copyright__ = '''(c) Alex A. Naanou 2008''' --- 2,6 ---- __version__ = '''0.3.00''' ! __sub_version__ = '''20080309132348''' __copyright__ = '''(c) Alex A. Naanou 2008''' *************** *** 126,137 **** # low level event handlers... # XXX rename into __<name>__ ! def _onSessionOpen(self, manager): ''' ''' # set the temporary namespace... self.__session_ns__ = {} ! super(SessionWithSessionNSMixin, self)._onSessionOpen(manager) # XXX rename into __<name>__ ! def _onSessionClose(self, manager): ''' ''' --- 126,140 ---- # low level event handlers... # XXX rename into __<name>__ ! ## def _onSessionOpen(self, manager): ! def _onSessionOpen(self): ''' ''' # set the temporary namespace... self.__session_ns__ = {} ! ## super(SessionWithSessionNSMixin, self)._onSessionOpen(manager) ! super(SessionWithSessionNSMixin, self)._onSessionOpen() # XXX rename into __<name>__ ! ## def _onSessionClose(self, manager): ! def _onSessionClose(self): ''' ''' *************** *** 140,144 **** del self.__session_ns__ # fire the event... ! super(SessionWithSessionNSMixin, self)._onSessionClose(manager) --- 143,148 ---- del self.__session_ns__ # fire the event... ! ## super(SessionWithSessionNSMixin, self)._onSessionClose(manager) ! super(SessionWithSessionNSMixin, self)._onSessionClose() |
|
From: Alex A. N. <ale...@us...> - 2008-03-09 10:26:02
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19803 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.180 retrieving revision 1.181 diff -C2 -d -r1.180 -r1.181 *** CHANGES 8 Mar 2008 15:57:11 -0000 1.180 --- CHANGES 9 Mar 2008 10:26:04 -0000 1.181 *************** *** 1,3 **** ! # this file was generated on [200803081855] pli changes: --- 1,3 ---- ! # this file was generated on [200803091324] pli changes: |
|
From: Alex A. N. <ale...@us...> - 2008-03-08 15:57:09
|
Update of /cvsroot/pli/pli-devel/pli In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31469/pli Modified Files: logictypes.py Log Message: Index: logictypes.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/logictypes.py,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** logictypes.py 5 Feb 2008 13:21:47 -0000 1.25 --- logictypes.py 8 Mar 2008 15:57:11 -0000 1.26 *************** *** 2,6 **** __version__ = '''0.1.21''' ! __sub_version__ = '''20080205155234''' __copyright__ = '''(c) Alex A. Naanou 2003''' --- 2,6 ---- __version__ = '''0.1.21''' ! __sub_version__ = '''20080308184834''' __copyright__ = '''(c) Alex A. Naanou 2003''' *************** *** 204,207 **** --- 204,213 ---- + #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + isident = ofptype(str, unicode, predicate=lambda o: len(o) > 0 \ + and False not in [ c.isalnum() \ + for c in o.split('_') ] \ + and o[0].isalpha()) + ###----------------------------------------------------------------------- *************** *** 716,719 **** --- 722,727 ---- print isodd(3), isodd(6) + print isident('b0_c'), isident('aaa'), isident(''), isident('321_4') + # check the dict chain... d = DictChain(a=1, b=2, c=3) |
|
From: Alex A. N. <ale...@us...> - 2008-03-08 15:57:09
|
Update of /cvsroot/pli/pli-devel/pli/tags In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31469/pli/tags Modified Files: tag.py tree.py Log Message: Index: tag.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/tag.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** tag.py 7 Mar 2008 11:34:38 -0000 1.15 --- tag.py 8 Mar 2008 15:57:11 -0000 1.16 *************** *** 2,6 **** __version__ = '''0.0.01''' ! __sub_version__ = '''20080307143129''' __copyright__ = '''(c) Alex A. Naanou 2007''' --- 2,6 ---- __version__ = '''0.0.01''' ! __sub_version__ = '''20080307153553''' __copyright__ = '''(c) Alex A. Naanou 2007''' *************** *** 249,252 **** --- 249,261 ---- res = self.select(self.__chain_tag__, *tags) return res + def chainrelated(self, *tags): + ''' + return all the tags that are related via chains. + ''' + chains = self.chains(*tags) + res = set() + for chain in chains: + res.update(self.chain2tags(chain)) + return res.difference(tags) *************** *** 488,491 **** --- 497,501 ---- print ts.relatedtags('aaa') print ts.chains('aaa') + print ts.chainrelated('aaa') ## print ts.relatedtags('aaa:bbb') Index: tree.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/tree.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** tree.py 7 Mar 2008 02:06:04 -0000 1.14 --- tree.py 8 Mar 2008 15:57:11 -0000 1.15 *************** *** 2,6 **** __version__ = '''0.0.01''' ! __sub_version__ = '''20080307044349''' __copyright__ = '''(c) Alex A. Naanou 2003''' --- 2,6 ---- __version__ = '''0.0.01''' ! __sub_version__ = '''20080307153817''' __copyright__ = '''(c) Alex A. Naanou 2003''' *************** *** 169,172 **** --- 169,173 ---- if o != generic.TAG_TAG][0] return super(TagTreePathProxy, self).__getattr__(name) + ## __getitem__ = __getattr__ # public interface... *************** *** 178,181 **** --- 179,187 ---- ''' return self._root.relatedtags(*self._path + tags) + @public + def chains(self, *tags): + ''' + ''' + return self._root.chains(*self._path + tags) ##!!! OID !!!## # XXX add efficient counting... |
|
From: Alex A. N. <ale...@us...> - 2008-03-08 15:57:09
|
Update of /cvsroot/pli/pli-devel/pli/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31469/pli/net Modified Files: rpcsession2.py Log Message: Index: rpcsession2.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/net/rpcsession2.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** rpcsession2.py 6 Mar 2008 15:37:32 -0000 1.4 --- rpcsession2.py 8 Mar 2008 15:57:11 -0000 1.5 *************** *** 2,6 **** __version__ = '''0.3.00''' ! __sub_version__ = '''20080306165348''' __copyright__ = '''(c) Alex A. Naanou 2008''' --- 2,6 ---- __version__ = '''0.3.00''' ! __sub_version__ = '''20080308185500''' __copyright__ = '''(c) Alex A. Naanou 2008''' *************** *** 15,19 **** import pli.logictypes as logictypes ! from pli.logictypes import ANY --- 15,19 ---- import pli.logictypes as logictypes ! from pli.logictypes import ANY, isident *************** *** 266,274 **** second level dispatch. ! this gets the path (.__get_by_path__(..) method) for the session ! context and calls it. ''' # get the session context... session = self.__active_sessions__[SID][1] # make the call... return self.__get_by_path__(session, path)(*p, **n) --- 266,282 ---- second level dispatch. ! get the object and call it. ! ! this does the folowing: ! - get the session. ! - prepare the path if .__prepare_path__ is defined. ! - get the object via the .__get_by_path__ method. ! - call the object and return the result. ''' # get the session context... session = self.__active_sessions__[SID][1] + # prepare the path... + if hasattr(self, '__prepare_path__'): + path = self.__prepare_path__(session, path) # make the call... return self.__get_by_path__(session, path)(*p, **n) *************** *** 347,351 **** res = prefix+res return res ! ##!!! possible problem with an expired sid that does not get noticed... (need a more clever way to destingwith a sid) def __prepare_data__(self, path, *p, **n): ''' --- 355,360 ---- res = prefix+res return res ! ##!!! possible problem with an expired sid that does not get noticed... ! ##!!! (need a more clever way to destingwith a sid) def __prepare_data__(self, path, *p, **n): ''' *************** *** 386,400 **** def __get_by_path__(self, session, path): ''' ''' obj = session - if hasattr(self, '__prepare_path__'): - path = self.__prepare_path__(session, path) - ## ##!!! think of a better way to do this... - ## if self.__item_protocol_in_path__: - ## for name in path: - ## obj = getattr(obj, name, obj['name']) - ## else: - ## for name in path: - ## obj = getattr(obj, name) for name in path: obj = getattr(obj, name) --- 395,401 ---- def __get_by_path__(self, session, path): ''' + get an object by path using the attribute protocol. ''' obj = session for name in path: obj = getattr(obj, name) *************** *** 409,412 **** --- 410,453 ---- #----------------------------------------------------------------------- + #-------------------------------SessionManagerWithItemPathGetterMixin--- + class SessionManagerWithItemPathGetterMixin(object): + ''' + ''' + def __get_by_path__(self, session, path): + ''' + get an object by path. + + NOTE: this will use pure item access protocol. + ''' + obj = session + for name in path: + obj = obj[name] + return obj + + + #--------------------------SessionManagerWithItemNAttrPathGetterMixin--- + class SessionManagerWithItemNAttrPathGetterMixin(object): + ''' + ''' + def __get_by_path__(self, session, path): + ''' + get object by path using either the attribute or the item protocol. + + if a path element is not an identifier or is not accessible ad an attr + the use the attr protocol, else, use the item protocol. + + NOTE: in this approach attributes have greater priority and shadow + items with the same name/key. + ''' + obj = session + for name in path: + if isident(name): + obj = getattr(obj, name, obj[name]) + else: + obj = obj[name] + return obj + + + #-----------------------------SessionManagerWithBasicPathTestingMixin--- class SessionManagerWithBasicPathTestingMixin(object): ''' *************** *** 658,662 **** if self.__is_global_method__(path[-1]): return self.__call_global__(SID, path, *p, **n) ! return super(SessionManagerWithGlobalMethodsMixin, self)._dispatch(SID, path, *p, **n) def __is_global_method__(self, name): --- 699,703 ---- if self.__is_global_method__(path[-1]): return self.__call_global__(SID, path, *p, **n) ! super(SessionManagerWithGlobalMethodsMixin, self)._dispatch(SID, path, *p, **n) def __is_global_method__(self, name): *************** *** 739,743 **** def meth(self, *p, **n): print 'dfl.meth', p, n - return 123 def _meth(self): print 'dfl._meth' --- 780,783 ---- *************** *** 786,792 **** sm.logout('0') ! print sm.dispatch(['logout'], sid) ! print sm.dispatch(['meth'], 1, 2, m=6) # in this case the system can not reliably say that the argument is --- 826,832 ---- sm.logout('0') ! sm.dispatch(['logout'], sid) ! sm.dispatch(['meth'], 1, 2, m=6) # in this case the system can not reliably say that the argument is |
|
From: Alex A. N. <ale...@us...> - 2008-03-08 15:57:09
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31469 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.179 retrieving revision 1.180 diff -C2 -d -r1.179 -r1.180 *** CHANGES 7 Mar 2008 11:59:04 -0000 1.179 --- CHANGES 8 Mar 2008 15:57:11 -0000 1.180 *************** *** 1,3 **** ! # this file was generated on [200803071457] pli changes: --- 1,3 ---- ! # this file was generated on [200803081855] pli changes: |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 11:59:17
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12024 Modified Files: CHANGES PKG-INFO Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.178 retrieving revision 1.179 diff -C2 -d -r1.178 -r1.179 *** CHANGES 7 Mar 2008 11:34:38 -0000 1.178 --- CHANGES 7 Mar 2008 11:59:04 -0000 1.179 *************** *** 1,5 **** ! # this file was generated on [200803071432] pli changes: version 0.0.243 (200802110313): - added proxyproperty and proxyproperties to pli.pattern.proxy.utils (not yet final, but the interface will likely not change). --- 1,12 ---- ! # this file was generated on [200803071457] pli changes: + version 0.0.244 (200803071454): + - added gc to pli.tags.generic + - fixed several issues with the tag engine... + - added .chains(...) to pli.tags.tag.TagSetTagChainMixin + - some refactoring... + - added more functionality to pli.pattern.proxy.utils.proxymethod (see docs). + version 0.0.243 (200802110313): - added proxyproperty and proxyproperties to pli.pattern.proxy.utils (not yet final, but the interface will likely not change). Index: PKG-INFO =================================================================== RCS file: /cvsroot/pli/pli-devel/PKG-INFO,v retrieving revision 1.113 retrieving revision 1.114 diff -C2 -d -r1.113 -r1.114 *** PKG-INFO 11 Feb 2008 00:18:24 -0000 1.113 --- PKG-INFO 7 Mar 2008 11:59:04 -0000 1.114 *************** *** 1,5 **** Metadata-Version: 1.0 Name: pli ! Version: 0.0.243 Summary: PLI: a utility library for the Python language. Home-page: http://pli.sourceforge.net/ --- 1,5 ---- Metadata-Version: 1.0 Name: pli ! Version: 0.0.244 Summary: PLI: a utility library for the Python language. Home-page: http://pli.sourceforge.net/ |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 11:59:16
|
Update of /cvsroot/pli/pli-devel/pli/tags In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12024/pli/tags Modified Files: generic.py Log Message: Index: generic.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/generic.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** generic.py 7 Mar 2008 11:34:38 -0000 1.16 --- generic.py 7 Mar 2008 11:59:05 -0000 1.17 *************** *** 2,6 **** __version__ = '''0.3.07''' ! __sub_version__ = '''20080307142513''' __copyright__ = '''(c) Alex A. Naanou 2007''' --- 2,6 ---- __version__ = '''0.3.07''' ! __sub_version__ = '''20080307145304''' __copyright__ = '''(c) Alex A. Naanou 2007''' *************** *** 122,126 **** - #----------------------------------------------------------------------- # helpers... --- 122,125 ---- *************** *** 185,193 **** #---------------------------------------------------------filltaggaps--- # XXX should these two be split?? - # XXX might be good make this an interactive generator so as to have - # more control over what is fixed and how... # XXX should this restore the tag to self?? # XXX might be good to make this explicitly depend on itertaggaps # (through arguments)... def filltaggaps(tagdb): ''' --- 184,192 ---- #---------------------------------------------------------filltaggaps--- # XXX should these two be split?? # XXX should this restore the tag to self?? # XXX might be good to make this explicitly depend on itertaggaps # (through arguments)... + # TODO make this an interactive generator so as to have more control + # over what is fixed and how... def filltaggaps(tagdb): ''' *************** *** 234,237 **** --- 233,262 ---- + #------------------------------------------------------------------gc--- + def gc(tagdb): + ''' + interactive garbage collector. + + this will iterate through the orphans and remove them. + + to skip the removal send the string 'skip' to the generator instance. + + Example: + + g = gc(tagdb) + + for tag in g: + if 'a' in tag: + g.send('skip') + + + WARNING: this will remove orphaned tags and objects. this list will + include tags added by addtags(..) but not yet used. + ''' + for tag in iterorphans(tagdb): + if (yield tag) != 'skip': + del tagdb[tag] + + #----------------------------------------------------------------------- *************** *** 572,578 **** print exclude(ts1, select(ts1, 'Y'), 'X') - print list(iterorphans(ts1)) print tags(ts1, 'a') print tags(ts1, 'aaa') --- 597,611 ---- print exclude(ts1, select(ts1, 'Y'), 'X') print tags(ts1, 'a') print tags(ts1, 'aaa') + print list(iterorphans(ts1)) + + # gc the orphans except for 'aaa' + g = gc(ts1) + for t in g: + if t == 'aaa': + g.send('skip') + + print list(iterorphans(ts1)) |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 11:34:34
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2986 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.177 retrieving revision 1.178 diff -C2 -d -r1.177 -r1.178 *** CHANGES 7 Mar 2008 10:30:34 -0000 1.177 --- CHANGES 7 Mar 2008 11:34:38 -0000 1.178 *************** *** 1,3 **** ! # this file was generated on [200803071326] pli changes: --- 1,3 ---- ! # this file was generated on [200803071432] pli changes: |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 11:34:34
|
Update of /cvsroot/pli/pli-devel/pli/pattern/proxy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2986/pli/pattern/proxy Modified Files: utils.py Log Message: Index: utils.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/pattern/proxy/utils.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** utils.py 7 Mar 2008 10:30:34 -0000 1.13 --- utils.py 7 Mar 2008 11:34:38 -0000 1.14 *************** *** 2,6 **** __version__ = '''0.0.09''' ! __sub_version__ = '''20080307132338''' __copyright__ = '''(c) Alex A. Naanou 2003''' --- 2,6 ---- __version__ = '''0.0.09''' ! __sub_version__ = '''20080307140442''' __copyright__ = '''(c) Alex A. Naanou 2003''' *************** *** 122,125 **** --- 122,130 ---- proxy = %(method_name)s''' + # doc... + if doc == None: + doc = '' + else: + doc += '\n\n' # explicit self passing... if explicit_self is True: |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 11:34:34
|
Update of /cvsroot/pli/pli-devel/pli/tags In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2986/pli/tags Modified Files: generic.py tag.py Log Message: Index: tag.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/tag.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** tag.py 7 Mar 2008 10:30:34 -0000 1.14 --- tag.py 7 Mar 2008 11:34:38 -0000 1.15 *************** *** 2,6 **** __version__ = '''0.0.01''' ! __sub_version__ = '''20080307132444''' __copyright__ = '''(c) Alex A. Naanou 2007''' --- 2,6 ---- __version__ = '''0.0.01''' ! __sub_version__ = '''20080307143129''' __copyright__ = '''(c) Alex A. Naanou 2007''' *************** *** 109,113 **** 'addtags', 'tag', ! 'untag' 'tags', 'relatedtags', --- 109,113 ---- 'addtags', 'tag', ! 'untag', 'tags', 'relatedtags', *************** *** 118,140 **** # NOTE: this is not intended for direct use... proxyutils.proxymethod('_rawtag', '__tag_engine__', '_tag', ! doc='NOTE: this was not intended for direct use!\n', explicit_self=True) - # XXX add store management inteface... - ## def isconsistent(self): - ## ''' - ## ''' - ## pass - ## def fixgaps(self): - ## ''' - ## ''' - ## pass #--------------------------------------------TagSetWithTagChainsMixin--- ! # XXX add chain formatting functions/methods... ! # .getchain(*tags) class TagSetTagChainMixin(object): ''' NOTE: this must be mixed with a valid tagset. --- 118,151 ---- # NOTE: this is not intended for direct use... proxyutils.proxymethod('_rawtag', '__tag_engine__', '_tag', ! doc='NOTE: this was not intended for direct use!', ! explicit_self=True) ! ! # store management inteface... ! proxyutils.proxymethod('isconsistent', '__tag_engine__', 'istagsconsistent', ! doc='check for tag consistency', ! explicit_self=True) ! proxyutils.proxymethod('fix', '__tag_engine__', 'filltaggaps', ! doc='check for tag consistency', explicit_self=True) #--------------------------------------------TagSetWithTagChainsMixin--- ! # XXX do we need chain-specific select??? class TagSetTagChainMixin(object): ''' + a chain is a tuple of tags. + + the tag chain structure is as follows: + + title <-------> Terminator + \ / + \ / + \ / + v v + (title, Terminator) + + - all the chain elements tag the chain (all-one). + - all chain elements are linked (all-all). NOTE: this must be mixed with a valid tagset. *************** *** 145,149 **** __chain_tag__ = 'TAGCHAIN' ! # tag-chain specific methods... def _ischain(self, tag): ''' --- 156,190 ---- __chain_tag__ = 'TAGCHAIN' ! # tag interface... ! def addtags(self, *tags): ! ''' ! ''' ! tags, chains = self._splitchains(tags) ! # process chains... ! self._addchains(*chains) ! super(TagSetTagChainMixin, self).addtags(*tags) ! ##!!! return?? ! def tag(self, obj, *tags): ! ''' ! ''' ! tags, chains = self._splitchains(tags) ! self._addchains(*chains) ! return super(TagSetTagChainMixin, self).tag(obj, *(tags+chains)) ! def _rawtag(self, obj, *tags): ! ''' ! ''' ! tags, chains = self._splitchains(tags) ! self._addchains(*chains) ! return super(TagSetTagChainMixin, self)._rawtag(obj, *(tags+chains)) ! # XXX this may be usefull for garbage collection... ! ## def untag(self, obj, *tags): ! ## ''' ! ## ''' ! ## tags, chaintags, chains = self._splitchains(tags) ! ## # XXX process chains... ! ## ##!!! ! ## super(TagSetTagChainMixin, self).untag(obj, *tags) ! ## ##!!! return?? ! # chain-specific helpers... def _ischain(self, tag): ''' *************** *** 153,168 **** return True return False - @staticmethod - def chain2tags(chain): - ''' - return the tags in chain. - ''' - # XXX check if cahin is a chain???? - return tuple(chain) - @staticmethod - def tags2chain(*tags): - ''' - ''' - return tags def _splitchains(self, tags): ''' --- 194,197 ---- *************** *** 180,184 **** t += (tag,) return t, c - ##!!! def _addchains(self, *chains): ''' --- 209,212 ---- *************** *** 192,241 **** else: self._rawtag(c, *(t+(tags.TAG_TAG,))) ! ##!!! is this correct??? self.__tag_engine__.link(self, c, *t) ! ! # tag interface... ! def addtags(self, *tags): ! ''' ! ''' ! tags, chains = self._splitchains(tags) ! # process chains... ! self._addchains(*chains) ! super(TagSetTagChainMixin, self).addtags(*tags) ! ##!!! return?? ! def tag(self, obj, *tags): ''' ''' ! tags, chains = self._splitchains(tags) ! self._addchains(*chains) ! return super(TagSetTagChainMixin, self).tag(obj, *(tags+chains)) ! def _rawtag(self, obj, *tags): ''' ''' ! tags, chains = self._splitchains(tags) ! self._addchains(*chains) ! return super(TagSetTagChainMixin, self)._rawtag(obj, *(tags+chains)) ! ## def untag(self, obj, *tags): ! ## ''' ! ## ''' ! ## tags, chaintags, chains = self._splitchains(tags) ! ## # XXX process chains... ! ## ##!!! ! ## super(TagSetTagChainMixin, self).untag(obj, *tags) ! ## ##!!! return?? ! ##!!! is this correct??? ! def relatedtags(self, *tags): ! ''' ''' ! tags, chains = self._splitchains(tags) ! return super(TagSetTagChainMixin, self).relatedtags(*(tags+chains)) ! ##!!! is this correct??? ! # XXX add more specific chain searches... ! def select(self, *tags): ! ''' ''' tags, chains = self._splitchains(tags) ! return super(TagSetTagChainMixin, self).select(*(tags+chains)) --- 220,252 ---- else: self._rawtag(c, *(t+(tags.TAG_TAG,))) ! # links all the tags in a chain... self.__tag_engine__.link(self, c, *t) ! # tag-chain specific methods... ! @staticmethod ! def chain2tags(chain): ''' + return the tags in chain. ''' ! # XXX check if cahin is a chain???? ! return tuple(chain) ! @staticmethod ! def tags2chain(*tags): ''' ''' ! return tags ! def chains(self, *tags): ''' ! return all the chains that contain tags. ! NOTE: of chains are given, then all the tags in them will be ! added to the search. ''' tags, chains = self._splitchains(tags) ! tags = set(tags) ! for chain in chains: ! tags.update(self.chain2tags(chain)) ! # collect all related chains... ! res = self.select(self.__chain_tag__, *tags) ! return res *************** *** 274,279 **** #--------------------------------------------------------------TagSet--- - ##class TagSet(TagSetMixin, dict): - ##class TagSet(TagSetTagChainMixin, TagSetMixin, dict): class TagSet(StringTagChainMixin, TagSetTagChainMixin, TagSetMixin, dict): ''' --- 285,288 ---- *************** *** 283,286 **** --- 292,296 ---- #------------------------------------------------TagSetWithSplitStore--- + ##!!! bring this up to date to support tag chains... # in geniral this should generate a unique string id for each stored # object and use that id in the tag store while storing the objects by *************** *** 473,483 **** # chains... ts.tag(o0, 'aaa:bbb') ! print ts.select('aaa') - #======================================================================= # vim:set ts=4 sw=4 nowrap : --- 483,496 ---- # chains... ts.tag(o0, 'aaa:bbb') + ts.tag(o1, 'aaa:ccc') ! print ts.select('aaa', 'TAGCHAIN') ! print ts.relatedtags('aaa') ! print ts.chains('aaa') ! ## print ts.relatedtags('aaa:bbb') #======================================================================= # vim:set ts=4 sw=4 nowrap : Index: generic.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/generic.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** generic.py 7 Mar 2008 10:30:34 -0000 1.15 --- generic.py 7 Mar 2008 11:34:38 -0000 1.16 *************** *** 2,6 **** __version__ = '''0.3.07''' ! __sub_version__ = '''20080307125708''' __copyright__ = '''(c) Alex A. Naanou 2007''' --- 2,6 ---- __version__ = '''0.3.07''' ! __sub_version__ = '''20080307142513''' __copyright__ = '''(c) Alex A. Naanou 2007''' *************** *** 222,225 **** --- 222,237 ---- + #---------------------------------------------------------iterorphans--- + def iterorphans(tagdb): + ''' + iterate orpahed tags. + ''' + for k, v in tagdb.items(): + if v == None or len(v.difference((TAG_TAG, OBJECT_TAG))) == 0: + # XXX do we need this check??? + if len(tags(tagdb, k).difference((TAG_TAG, OBJECT_TAG))) == 0: + yield k + + #----------------------------------------------------------------------- *************** *** 300,303 **** --- 312,317 ---- if tag not in tagdb: tagdb[tag] = tdbset() + # XXX should this tag the tag with TAG_TAG??? + _tag(tagdb, tag, TAG_TAG) *************** *** 457,460 **** --- 471,475 ---- #-------------------------------------------------------------iselect--- + ##!!! def iselect(tagdb, *tags): ''' *************** *** 557,560 **** --- 572,578 ---- print exclude(ts1, select(ts1, 'Y'), 'X') + print list(iterorphans(ts1)) + print tags(ts1, 'a') + print tags(ts1, 'aaa') |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 10:30:30
|
Update of /cvsroot/pli/pli-devel/pli/tags In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11344/pli/tags Modified Files: generic.py tag.py Log Message: Index: tag.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/tag.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** tag.py 7 Mar 2008 02:06:04 -0000 1.13 --- tag.py 7 Mar 2008 10:30:34 -0000 1.14 *************** *** 2,6 **** __version__ = '''0.0.01''' ! __sub_version__ = '''20080307045457''' __copyright__ = '''(c) Alex A. Naanou 2007''' --- 2,6 ---- __version__ = '''0.0.01''' ! __sub_version__ = '''20080307132444''' __copyright__ = '''(c) Alex A. Naanou 2007''' *************** *** 8,11 **** --- 8,12 ---- #----------------------------------------------------------------------- + import pli.pattern.proxy.utils as proxyutils import pli.tags.generic as tags import pli.pattern.mixin.mapping as mapping *************** *** 105,139 **** # tagset inteface... ! def addtags(self, *tags): ! ''' ! ''' ! return self.__tag_engine__.addtags(self, *tags) ! def tag(self, obj, *tags): ! ''' ! ''' ! return self.__tag_engine__.tag(self, obj, *tags) ! def _rawtag(self, obj, *tags): ! ''' ! ! NOTE: this is not intended for direct use... ! ''' ! return self.__tag_engine__._tag(self, obj, *tags) ! def untag(self, obj, *tags): ! ''' ! ''' ! return self.__tag_engine__.untag(self, obj, *tags) ! def tags(self, obj): ! ''' ! ''' ! return self.__tag_engine__.tags(self, obj) ! def relatedtags(self, *tags): ! ''' ! ''' ! return self.__tag_engine__.relatedtags(self, *tags) ! def select(self, *tags): ! ''' ! ''' ! return self.__tag_engine__.select(self, *tags) # XXX add store management inteface... --- 106,123 ---- # tagset inteface... ! proxyutils.proxymethods(( ! 'addtags', ! 'tag', ! 'untag' ! 'tags', ! 'relatedtags', ! 'select', ! ), '__tag_engine__', ! explicit_self=True) ! # NOTE: this is not intended for direct use... ! proxyutils.proxymethod('_rawtag', '__tag_engine__', '_tag', ! doc='NOTE: this was not intended for direct use!\n', ! explicit_self=True) # XXX add store management inteface... Index: generic.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/generic.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** generic.py 28 Dec 2007 13:04:57 -0000 1.14 --- generic.py 7 Mar 2008 10:30:34 -0000 1.15 *************** *** 2,6 **** __version__ = '''0.3.07''' ! __sub_version__ = '''20071228155716''' __copyright__ = '''(c) Alex A. Naanou 2007''' --- 2,6 ---- __version__ = '''0.3.07''' ! __sub_version__ = '''20080307125708''' __copyright__ = '''(c) Alex A. Naanou 2007''' *************** *** 43,46 **** --- 43,47 ---- # unite - ??? # exclude - done but not here. + # pattern - search (difflib?) # # |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 10:30:30
|
Update of /cvsroot/pli/pli-devel/pli/pattern/proxy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11344/pli/pattern/proxy Modified Files: utils.py Log Message: Index: utils.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/pattern/proxy/utils.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** utils.py 11 Feb 2008 00:33:22 -0000 1.12 --- utils.py 7 Mar 2008 10:30:34 -0000 1.13 *************** *** 1,6 **** #======================================================================= ! __version__ = '''0.0.04''' ! __sub_version__ = '''20080211033040''' __copyright__ = '''(c) Alex A. Naanou 2003''' --- 1,6 ---- #======================================================================= ! __version__ = '''0.0.09''' ! __sub_version__ = '''20080307132338''' __copyright__ = '''(c) Alex A. Naanou 2003''' *************** *** 92,99 **** #---------------------------------------------------------proxymethod--- # TODO create a version of this with super call... ! def proxymethod(method_name, source_attr, depth=1, decorators=()): ''' create a proxy to the method name in the containing namespace. NOTE: this will add the method_name to the containing namespace. NOTE: source_attr is to be used as the attr name referencing the source object. --- 92,111 ---- #---------------------------------------------------------proxymethod--- # TODO create a version of this with super call... ! # XXX as soon as we can construct a function in pure python this will ! # need to be rewritten... ! def proxymethod(method_name, source_attr, target_method_name=None, doc='', depth=1, decorators=(), explicit_self=False): ''' create a proxy to the method name in the containing namespace. + arguments: + method_name - the name of the method to proxy. + source_attr - attribute to which to proxy the method call. + target_method_name - target method name (optional). + doc - the doc string to use for the constructed function. + decorators - sequence of decorators to apply to the constructed function. + explicit_self - if true, pass the self to the target explicitly. + + depth - frame depth, used for name setting (use at your own risk). + NOTE: this will add the method_name to the containing namespace. NOTE: source_attr is to be used as the attr name referencing the source object. *************** *** 102,112 **** txt = '''\ def %(method_name)s(self, *p, **n): """ ! this is the proxy to %(method_name)s method. ! """ ! return self.%(source_attr)s.%(method_name)s(*p, **n) proxy = %(method_name)s''' # execute the above code... ! exec (txt % {'method_name': method_name, 'source_attr': source_attr}) # run the decorators... for d in decorators: --- 114,140 ---- txt = '''\ def %(method_name)s(self, *p, **n): + """%(doc)s + this is a proxy to %(target_method_name)s method. """ ! return self.%(source_attr)s.%(target_method_name)s(%(self_arg)s*p, **n) ! ! # add the result to a predictable name in the NS. proxy = %(method_name)s''' + + # explicit self passing... + if explicit_self is True: + self_arg = 'self, ' + else: + self_arg = '' + # target method... + if target_method_name == None: + target_method_name = method_name # execute the above code... ! exec (txt % { ! 'doc': doc, ! 'method_name': method_name, ! 'target_method_name': target_method_name, ! 'source_attr': source_attr, ! 'self_arg': self_arg}) # run the decorators... for d in decorators: *************** *** 117,126 **** #--------------------------------------------------------proxymethods--- ! def proxymethods(names, source_attr, decorators=()): ''' generate a direct proxy for each name. ''' for name in names: ! proxymethod(name, source_attr, depth=2, decorators=decorators) --- 145,155 ---- #--------------------------------------------------------proxymethods--- ! def proxymethods(names, source_attr, decorators=(), explicit_self=False): ''' generate a direct proxy for each name. ''' for name in names: ! proxymethod(name, source_attr, depth=2, ! decorators=decorators, explicit_self=explicit_self) |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 10:30:30
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11344 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.176 retrieving revision 1.177 diff -C2 -d -r1.176 -r1.177 *** CHANGES 7 Mar 2008 09:53:55 -0000 1.176 --- CHANGES 7 Mar 2008 10:30:34 -0000 1.177 *************** *** 1,3 **** ! # this file was generated on [200803071250] pli changes: --- 1,3 ---- ! # this file was generated on [200803071326] pli changes: |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 09:53:51
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29652 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.175 retrieving revision 1.176 diff -C2 -d -r1.175 -r1.176 *** CHANGES 7 Mar 2008 02:06:04 -0000 1.175 --- CHANGES 7 Mar 2008 09:53:55 -0000 1.176 *************** *** 1,3 **** ! # this file was generated on [200803070504] pli changes: --- 1,3 ---- ! # this file was generated on [200803071250] pli changes: |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 02:06:00
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17778 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.174 retrieving revision 1.175 diff -C2 -d -r1.174 -r1.175 *** CHANGES 6 Mar 2008 15:37:31 -0000 1.174 --- CHANGES 7 Mar 2008 02:06:04 -0000 1.175 *************** *** 1,3 **** ! # this file was generated on [200803061835] pli changes: --- 1,3 ---- ! # this file was generated on [200803070504] pli changes: |
|
From: Alex A. N. <ale...@us...> - 2008-03-07 02:05:59
|
Update of /cvsroot/pli/pli-devel/pli/tags In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17778/pli/tags Modified Files: tag.py tree.py Log Message: Index: tag.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/tag.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** tag.py 2 Jan 2008 22:17:24 -0000 1.12 --- tag.py 7 Mar 2008 02:06:04 -0000 1.13 *************** *** 2,6 **** __version__ = '''0.0.01''' ! __sub_version__ = '''20080102022334''' __copyright__ = '''(c) Alex A. Naanou 2007''' --- 2,6 ---- __version__ = '''0.0.01''' ! __sub_version__ = '''20080307045457''' __copyright__ = '''(c) Alex A. Naanou 2007''' *************** *** 123,126 **** --- 123,130 ---- ''' return self.__tag_engine__.untag(self, obj, *tags) + def tags(self, obj): + ''' + ''' + return self.__tag_engine__.tags(self, obj) def relatedtags(self, *tags): ''' *************** *** 192,195 **** --- 196,200 ---- t += (tag,) return t, c + ##!!! def _addchains(self, *chains): ''' *************** *** 200,205 **** t = self.chain2tags(c) if self.__chain_tag__ != None: ! t += (self.__chain_tag__,) ! self._rawtag(c, *(t+(tags.TAG_TAG,))) # tag interface... --- 205,213 ---- t = self.chain2tags(c) if self.__chain_tag__ != None: ! self._rawtag(c, *(t+(tags.TAG_TAG, self.__chain_tag__))) ! else: ! self._rawtag(c, *(t+(tags.TAG_TAG,))) ! ##!!! is this correct??? ! self.__tag_engine__.link(self, c, *t) # tag interface... *************** *** 479,482 **** --- 487,494 ---- print tss.addtags('x', 'y', 'z') + # chains... + ts.tag(o0, 'aaa:bbb') + + print ts.select('aaa') Index: tree.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/tags/tree.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** tree.py 2 Feb 2008 18:04:34 -0000 1.13 --- tree.py 7 Mar 2008 02:06:04 -0000 1.14 *************** *** 2,6 **** __version__ = '''0.0.01''' ! __sub_version__ = '''20080128022947''' __copyright__ = '''(c) Alex A. Naanou 2003''' --- 2,6 ---- __version__ = '''0.0.01''' ! __sub_version__ = '''20080307044349''' __copyright__ = '''(c) Alex A. Naanou 2003''' *************** *** 115,119 **** # call the interface method... if hasattr(res, self.__node_constructor_callback_name__): ! getattr(res, self.__node_constructor_callback_name__)(getoid(res), self.__tagset__, self.__object_tags__) return res --- 115,119 ---- # call the interface method... if hasattr(res, self.__node_constructor_callback_name__): ! getattr(res, self.__node_constructor_callback_name__)(getoid(res), self.__tagset__, self.__object_tags__ + self._tags) return res *************** *** 434,438 **** print tree.addtags('xxx', 'yyy') print tree.xxx.keys() ! --- 434,443 ---- print tree.addtags('xxx', 'yyy') print tree.xxx.keys() ! ! constructor('X', A, 'fff:ggg') ! tree.X() ! ! print tree['fff:ggg'] ! print tree['fff'] |
|
From: Alex A. N. <ale...@us...> - 2008-03-06 15:37:31
|
Update of /cvsroot/pli/pli-devel/pli/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8221/pli/net Modified Files: rpcsession2.py Log Message: Index: rpcsession2.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/net/rpcsession2.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rpcsession2.py 18 Feb 2008 04:39:30 -0000 1.3 --- rpcsession2.py 6 Mar 2008 15:37:32 -0000 1.4 *************** *** 2,6 **** __version__ = '''0.3.00''' ! __sub_version__ = '''20080213174054''' __copyright__ = '''(c) Alex A. Naanou 2008''' --- 2,6 ---- __version__ = '''0.3.00''' ! __sub_version__ = '''20080306165348''' __copyright__ = '''(c) Alex A. Naanou 2008''' *************** *** 658,662 **** if self.__is_global_method__(path[-1]): return self.__call_global__(SID, path, *p, **n) ! super(SessionManagerWithGlobalMethodsMixin, self)._dispatch(SID, path, *p, **n) def __is_global_method__(self, name): --- 658,662 ---- if self.__is_global_method__(path[-1]): return self.__call_global__(SID, path, *p, **n) ! return super(SessionManagerWithGlobalMethodsMixin, self)._dispatch(SID, path, *p, **n) def __is_global_method__(self, name): *************** *** 739,742 **** --- 739,743 ---- def meth(self, *p, **n): print 'dfl.meth', p, n + return 123 def _meth(self): print 'dfl._meth' *************** *** 785,791 **** sm.logout('0') ! sm.dispatch(['logout'], sid) ! sm.dispatch(['meth'], 1, 2, m=6) # in this case the system can not reliably say that the argument is --- 786,792 ---- sm.logout('0') ! print sm.dispatch(['logout'], sid) ! print sm.dispatch(['meth'], 1, 2, m=6) # in this case the system can not reliably say that the argument is |
|
From: Alex A. N. <ale...@us...> - 2008-03-06 15:37:31
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8221 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.173 retrieving revision 1.174 diff -C2 -d -r1.173 -r1.174 *** CHANGES 18 Feb 2008 04:39:30 -0000 1.173 --- CHANGES 6 Mar 2008 15:37:31 -0000 1.174 *************** *** 1,3 **** ! # this file was generated on [200802180736] pli changes: --- 1,3 ---- ! # this file was generated on [200803061835] pli changes: |
|
From: Alex A. N. <ale...@us...> - 2008-02-18 04:39:28
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30262 Modified Files: CHANGES LICENSE Log Message: updated licence... Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.172 retrieving revision 1.173 diff -C2 -d -r1.172 -r1.173 *** CHANGES 11 Feb 2008 00:33:22 -0000 1.172 --- CHANGES 18 Feb 2008 04:39:30 -0000 1.173 *************** *** 1,3 **** ! # this file was generated on [200802110330] pli changes: --- 1,3 ---- ! # this file was generated on [200802180736] pli changes: Index: LICENSE =================================================================== RCS file: /cvsroot/pli/pli-devel/LICENSE,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LICENSE 3 Jan 2008 21:35:49 -0000 1.2 --- LICENSE 18 Feb 2008 04:39:30 -0000 1.3 *************** *** 1,31 **** ! Copyright (c) 2003-2008 Alex A. Naanou ! All rights reserved. ! The license is provided to Recipient and Recipient's Licensees under ! the following terms. ! Redistribution and use in source and binary forms of the Software, with ! or without modification, are permitted provided that the following ! conditions are met: ! Redistributions of source code of the Software must retain the above ! copyright notice, this list of conditions and the following disclaimer. ! Redistributions in binary form of the Software must reproduce the above ! copyright notice, this list of conditions and the following disclaimer ! in the documentation and/or other materials provided with the ! distribution. Neither the name of the author nor the names of the ! contributors shall be used to endorse or promote products derived from ! this Software without specific prior written permission. ! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ! "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ! LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A ! PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ALEX A. NAANOU OR ! ANY OF THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ! DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ! THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ! (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- 1,30 ---- ! Copyright (c) 2003-2008, Alex A. Naanou ! All rights reserved. ! Redistribution and use in source and binary forms, with or without ! modification, are permitted provided that the following conditions are ! met: ! * Redistributions of source code must retain the above copyright ! notice, this list of conditions and the following disclaimer. ! * Redistributions in binary form must reproduce the above copyright ! notice, this list of conditions and the following disclaimer in ! the documentation and/or other materials provided with the ! distribution. ! * Neither the name of the author nor the names of the contributors ! may be used to endorse or promote products derived from this ! software without specific prior written permission. ! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS ! IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED ! TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A ! PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ! OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ! DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ! THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ! (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
From: Alex A. N. <ale...@us...> - 2008-02-18 04:39:28
|
Update of /cvsroot/pli/pli-devel/pli/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30262/pli/net Modified Files: rpcsession2.py Log Message: updated licence... Index: rpcsession2.py =================================================================== RCS file: /cvsroot/pli/pli-devel/pli/net/rpcsession2.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** rpcsession2.py 5 Feb 2008 13:21:47 -0000 1.2 --- rpcsession2.py 18 Feb 2008 04:39:30 -0000 1.3 *************** *** 2,6 **** __version__ = '''0.3.00''' ! __sub_version__ = '''20080205161610''' __copyright__ = '''(c) Alex A. Naanou 2008''' --- 2,6 ---- __version__ = '''0.3.00''' ! __sub_version__ = '''20080213174054''' __copyright__ = '''(c) Alex A. Naanou 2008''' *************** *** 749,756 **** __timeout__ = 1 ! TestSessionManager.regdefault('0', DFL()) sm = TestSessionManager() # direct call... sid = sm.login('test') --- 749,758 ---- __timeout__ = 1 ! ## TestSessionManager.regdefault('0', DFL()) sm = TestSessionManager() + sm.regdefault('0', DFL()) + # direct call... sid = sm.login('test') |
|
From: Alex A. N. <ale...@us...> - 2008-02-11 00:33:18
|
Update of /cvsroot/pli/pli-devel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14490 Modified Files: CHANGES Log Message: Index: CHANGES =================================================================== RCS file: /cvsroot/pli/pli-devel/CHANGES,v retrieving revision 1.171 retrieving revision 1.172 diff -C2 -d -r1.171 -r1.172 *** CHANGES 11 Feb 2008 00:29:28 -0000 1.171 --- CHANGES 11 Feb 2008 00:33:22 -0000 1.172 *************** *** 1,3 **** ! # this file was generated on [200802110327] pli changes: --- 1,3 ---- ! # this file was generated on [200802110330] pli changes: |