version 1.54, 2005/06/09 21:57:30
|
version 1.55, 2005/06/10 10:23:54
|
Line 235 class ECHO_basis:
|
Line 235 class ECHO_basis:
|
area.setAngle(angle) |
area.setAngle(angle) |
area.setType(type) |
area.setType(type) |
area.setPermanent(permanent) |
area.setPermanent(permanent) |
# add new area |
# add the "new" area |
if self.REQUEST.has_key('add'): |
if self.REQUEST.has_key('add'): |
coordstring = self.REQUEST.get('coords.new', '') |
coordstring = self.REQUEST.get('coords.new', '') |
coords = string.split(coordstring, ',') |
coords = string.split(coordstring, ',') |
Line 250 class ECHO_basis:
|
Line 250 class ECHO_basis:
|
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.redirect('ECHO_graphicEntry') |
RESPONSE.redirect('ECHO_graphicEntry') |
|
|
def createJSAreas(self, areas): |
def createJSAreas(self, areas, forcepermanent=None): |
"""create area calls for JavaScript""" |
"""create area calls for JavaScript""" |
js="\n" |
js="\n" |
for ob in areas: |
for ob in areas: |
js+="""addArea('%s', 'overview', %s, '%s', '%s');\n"""%(ob.getFullId(),ob.getCoordString(),ob.getType(),ob.isPermanent()) |
if forcepermanent is not None: |
|
perm = forcepermanent |
|
else: |
|
perm = ob.isPermanent() |
|
js+="""addArea('%s', 'overview', %s, '%s', '%s');\n"""%(ob.getFullId(),ob.getCoordString(),ob.getType(),perm) |
return js |
return js |
|
|
def createMapHead(self): |
def createMapHead(self): |