version 1.63, 2004/05/07 14:34:07
|
version 1.64, 2004/05/07 14:43:07
|
Line 1100 class ECHO_root(Folder,Persistent,Implic
|
Line 1100 class ECHO_root(Folder,Persistent,Implic
|
def checkIfArrow(obj): |
def checkIfArrow(obj): |
if hasattr(obj,'coords'): |
if hasattr(obj,'coords'): |
for coordtemp in obj.coords: |
for coordtemp in obj.coords: |
if len(coordtemp)>3: |
print obj.title,len(coordtemp) |
|
if (len(coordtemp)>4) and not (coordtemp[4]==''): |
return 4 |
return 4 |
return None |
return None |
return None |
return None |
Line 1113 class ECHO_root(Folder,Persistent,Implic
|
Line 1114 class ECHO_root(Folder,Persistent,Implic
|
for entry in entries: |
for entry in entries: |
|
|
if checkIfArrow(entry[1]): |
if checkIfArrow(entry[1]): |
|
print "VP" |
setattr(entry[1],'viewClassification','view point') |
setattr(entry[1],'viewClassification','view point') |
else: |
else: |
|
print "area" |
setattr(entry[1],'viewClassification','area') |
setattr(entry[1],'viewClassification','area') |
|
|
#entry[1].contentType == entry[1].content_type |
#entry[1].contentType == entry[1].content_type |