[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz metacode/pegboard.py ./TODO doc/pegboard/vo...
From: |
Asko Soukka |
Subject: |
[Gzz-commits] gzz metacode/pegboard.py ./TODO doc/pegboard/vo... |
Date: |
Tue, 05 Nov 2002 13:02:24 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Asko Soukka <address@hidden> 02/11/05 13:02:23
Modified files:
metacode : pegboard.py
. : TODO
Added files:
doc/pegboard/vobcoorder_culling--humppake: peg.rst
Log message:
Tiny forgotten peg about culling coordsys...
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/pegboard.py.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/doc/pegboard/vobcoorder_culling--humppake/peg.rst?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/TODO.diff?tr1=1.370&tr2=1.371&r1=text&r2=text
Patches:
Index: gzz/TODO
diff -u gzz/TODO:1.370 gzz/TODO:1.371
--- gzz/TODO:1.370 Tue Nov 5 11:19:53 2002
+++ gzz/TODO Tue Nov 5 13:02:23 2002
@@ -77,8 +77,6 @@
createPaperQuad, since that's the most flexible approach.
- porting: make sure all demos etc. work with plain mesa
humppake:
- - small peg about vobcoorder changes for culling (actually
- already made it once, but somehow failed to commit... %-)
+ more about PEG1018 - generalizing VobVanishingClient
+ rethink interfaces between PlainVanishing and VobScene
- learn Box
Index: gzz/metacode/pegboard.py
diff -u gzz/metacode/pegboard.py:1.10 gzz/metacode/pegboard.py:1.11
--- gzz/metacode/pegboard.py:1.10 Tue Nov 5 12:08:38 2002
+++ gzz/metacode/pegboard.py Tue Nov 5 13:02:22 2002
@@ -63,22 +63,22 @@
bs = b['date'].split('-')
if not len(as) == 3 or not len(bs) == 3:
return len(as) < len(bs) or (len(bs) < len(as)) * -1 or 0
- ac = as[0]*356 + as[1]*30 + as[2]
- bc = bs[0]*356 + bs[1]*30 + bs[2]
+ ac = int(as[0])*10000 + int(as[1])*100 + int(as[2])
+ bc = int(bs[0])*10000 + int(bs[1])*100 + int(bs[2])
return ac < bc or (bc < ac) * -1 or 0
#returns the value of the first occurrense or all of the occurrences
#of given tagName in docutils' document tree
-def getTagValue(document, tagName, all=0):
+def getTagValue(document, tagName, all=0, always_raw=0):
values = []
if document.tagname.lower() == tagName.lower():
- if hasattr(document.children[0], 'data'):
+ if hasattr(document.children[0], 'data') and not always_raw:
return document.children[0].data
else:
- return document.rawsource
+ return document.rawsource
if hasattr(document, 'children'):
for child in document.children:
- value = getTagValue(child, tagName, all)
+ value = getTagValue(child, tagName, all=all, always_raw=always_raw)
if value and not all:
return value
elif value:
@@ -146,10 +146,10 @@
#conversion have succeeded so far, parsing peg's metadata
#from its document tree
if rstfile == peg['rst']:
- peg['topic'] = getTagValue(document, 'title')
+ peg['topic'] = getTagValue(document, 'title', always_raw=1)
peg['topic'] = peg['topic'].replace('`', '')
peg['date'] = getTagValue(document, 'date')
- #we may have got 'rawsource', which need some tidying
+ #we may have got 'rawsource', which needs some tidying
if peg['date'].startswith('$Date'):
peg['date'] =
peg['date'][7:len(peg['date'])-11].replace('/', '-')
peg['status'] = getTagValue(document, 'status') or undefined
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz metacode/pegboard.py ./TODO doc/pegboard/vo...,
Asko Soukka <=