Ticket #971 (assigned Task)

Opened 4 years ago

Last modified 4 years ago

viewer fails with latest translator code

Reported by: rupert Owned by: gerry
Priority: critical Milestone: V1.2 Questionnaire release
Component: WP6 - CMIP5 Questionnaire Version:
Keywords: Cc: charlotte
Requirement: http://metaforclimate.eu/Work-Package-2/Developing-the-CIM/Project-Requirements-summary.htm

Description

The latest translator code conforms to CIM1.5. The viewer is failing from the simulation page with the following error:

Request Method: GET Request URL: http://localhost:8001/cmip5/45/simulation/doc/3/cimView/ Exception Type: IndexError Exception Value:

list index out of range

Exception Location: /home/rupert/proj/metafor/metaforSVN/cmip5q/cmip5q/cmip5q/protoq/cimHandling.py in cimViewDoc, line 310 Python Executable: /usr/bin/python Python Version: 2.6.5

Traceback  Switch to copy-and-paste view

  • /usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/core/handlers/base.pyinget_response 85. # Apply view middleware
    1. for middleware_method in self._view_middleware:
    2. response = middleware_method(request, callback, callback_args, callback_kwargs)
    3. if response:
    4. return response
    5. try:
    6. response = callback(request, *callback_args, callback_kwargs) ...
    7. except Exception, e:
    8. # If the view raised an exception, run it through exception
    9. # middleware, and if the exception middleware returns a
    10. # response, use that. Otherwise, reraise the exception.
    11. for middleware_method in self._exception_middleware:
    12. response = middleware_method(request, e)

 ▶ Local vars

VariableValue
callback<function genericDoc at 0x9658a74>
callback_args()
callback_kwargs{'cid': u'45', 'docType': u'simulation', 'method': u'cimView', 'pkid': u'3'}
eIndexError('list index out of range',)
exc_info(<type 'exceptions.IndexError'>, IndexError('list index out of range',), <traceback object at 0x968c8c4>)
exceptions<module 'django.core.exceptions' from '/usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/core/exceptions.pyc'>
middleware_method<bound method AuthenticationMiddleware.process_request of <django.contrib.auth.middleware.AuthenticationMiddleware object at 0x9565d6c>>
receivers[(<function _rollback_on_exception at 0x8e8dae4>, None)]
request<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': '6b005c357d16c2049898285e6f02fee1'}, META:{'CLASSPATH': '/home/rupert/!.resolver:/home/rupert/proj/metafor/ofp2fortml/antlr-3.1.jar:/home/rupert/proj/metafor/ofp2fortml/OpenFortranParser-0.7.1/build/OpenFortranParser.jar:/home/rupert/proj/metafor/ofp2fortml/jdom.jar', 'COLORTERM': 'gnome-terminal', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'CPATH': '/opt/intel/Compiler/11.1/059/ipp/ia32/include:/opt/intel/Compiler/11.1/059/mkl/include:/opt/intel/Compiler/11.1/059/tbb/include', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-IRoiS2v5tf,guid=4b3ca8349a676bdf292c08b64d905d58', 'DEFAULTS_PATH': '/usr/share/gconf/gnome.default.path', 'DESKTOP_SESSION': 'gnome', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'cmip5q.settings', 'DYLD_LIBRARY_PATH': '/opt/intel/Compiler/11.1/059/tbb/ia32/cc4.1.0_libc2.4_kernel2.6.16.21/lib', 'FPATH': '/opt/intel/Compiler/11.1/059/mkl/include', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GDMSESSION': 'gnome', 'GDM_KEYBOARD_LAYOUT': 'gb', 'GDM_LANG': 'en_GB.utf8', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'GNOME_KEYRING_CONTROL': '/tmp/keyring-TC8PUe', 'GNOME_KEYRING_PID': '1388', 'GTK_MODULES': 'canberra-gtk-module', 'HOME': '/home/rupert', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=6b005c357d16c2049898285e6f02fee1', 'HTTP_HOST': 'localhost:8001', 'HTTP_KEEP_ALIVE': '115', 'HTTP_REFERER': 'http://localhost:8001/cmip5/45/simulation/3/edit/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16', 'INCLUDE': '/opt/intel/Compiler/11.1/059/ipp/ia32/include:/opt/intel/Compiler/11.1/059/mkl/include', 'INTEL_LICENSE_FILE': '/opt/intel/Compiler/11.1/059/licenses:/opt/intel/licenses:/home/rupert/intel/licenses', 'IPPROOT': '/opt/intel/Compiler/11.1/059/ipp/ia32', 'LANG': 'en_GB.utf8', 'LD_LIBRARY_PATH': '/opt/intel/Compiler/11.1/059/lib/ia32:/opt/intel/Compiler/11.1/059/ipp/ia32/sharedlib:/opt/intel/Compiler/11.1/059/mkl/lib/32:/opt/intel/Compiler/11.1/059/tbb/ia32/cc4.1.0_libc2.4_kernel2.6.16.21/lib::/usr/local/lib:/home/rupert/Downloads/l_cprof_p_11.1.059_ia32/pset/32/gcc-3.2:/usr/local/lib:/usr/local/lib:/usr/local/lib:/usr/local/lib', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'LIB': '/opt/intel/Compiler/11.1/059/ipp/ia32/lib:', 'LIBRARY_PATH': '/opt/intel/Compiler/11.1/059/lib/ia32:/opt/intel/Compiler/11.1/059/ipp/ia32/lib:/opt/intel/Compiler/11.1/059/mkl/lib/32:/opt/intel/Compiler/11.1/059/tbb/ia32/cc4.1.0_libc2.4_kernel2.6.16.21/lib', 'LOGNAME': 'rupert', 'LS_COLORS': 'rs=!0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;3!6:', 'MANDATORY_PATH': '/usr/share/gconf/gnome.mandatory.path', 'MANPATH': '/opt/intel/Compiler/11.1/059/man/en_US:/opt/intel/Compiler/11.1/059/mkl/man/en_US:/usr/local/man:/usr/local/share/man:/usr/share/man:/home/rupert/bin/fcm/man', 'MKLROOT': '/opt/intel/Compiler/11.1/059/mkl', 'NLSPATH': '/opt/intel/Compiler/11.1/059/lib/ia32/locale/%l_%t/%N:/opt/intel/Compiler/11.1/059/ipp/ia32/lib/locale/%l_%t/%N:/opt/intel/Compiler/11.1/059/mkl/lib/32/locale/%l_%t/%N:/opt/intel/Compiler/11.1/059/idb/ia32/locale/%l_%t/%N', 'OLDPWD': '/home/rupert/proj/metafor/metaforSVN/cmip5q/cmip5q/cmip5q', 'ORBIT_SOCKETDIR': '/tmp/orbit-rupert', 'PATH': '/opt/intel/Compiler/11.1/059/bin/ia32:/home/rupert/Downloads/docbook/docbook-xsl-ns-1.76.1-RC2/tools/bin:/home/rupert/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/rupert/bin/fcm/bin:/opt/OxygenXMLEditor11', 'PATH_INFO': u'/cmip5/45/simulation/doc/3/cimView/', 'PWD': '/home/rupert/proj/metafor/metaforSVN/cmip5q/cmip5q/cmip5q', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8001', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.6.5', 'SESSION_MANAGER': 'local/ubuntu:@/tmp/.ICE-unix/1406,unix/ubuntu:/tmp/.ICE-unix/1406', 'SGML_CATALOG_FILES': '/home/rupert/Downloads/docbook/docbook-xsl-ns-1.76.1-RC2/catalog:/etc/sgml/catalog', 'SHELL': '/bin/bash', 'SHLVL': '1', 'SPEECHD_PORT': '7560', 'SSH_AGENT_PID': '1459', 'SSH_AUTH_SOCK': '/tmp/keyring-TC8PUe/ssh', 'TERM': 'xterm', 'TZ': 'Europe/London?', 'UDEdir': '', 'USER': 'rupert', 'USERNAME': 'rupert', 'WINDOWID': '92274692', 'XAUTHORITY': '/var/run/gdm/auth-for-rupert-sIjQhc/database', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-gnome:/etc/xdg', 'XDG_DATA_DIRS': '/usr/share/gnome:/usr/local/share/:/usr/share/', 'XDG_SESSION_COOKIE': 'c432e96636d3e07cc796584e4b01e8d0-1301306712.25308-410474222', 'XML_CATALOG_FILES': '/home/rupert/Downloads/docbook/docbook-xsl-ns-1.76.1-RC2/catalog.xml /etc/xml/catalog', '_': '/usr/bin/python', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb76e90d0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x953656c>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
resolver<RegexURLResolver cmip5q.urls (None:None) ^/>
responseNone
self<django.core.handlers.wsgi.WSGIHandler object at 0x909b80c>
settings<django.conf.LazySettings object at 0xb75f772c>
urlconf'cmip5q.urls'
urlresolvers<module 'django.core.urlresolvers' from '/usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/core/urlresolvers.pyc'>
  • /home/rupert/proj/metafor/metaforSVN/cmip5q/cmip5q/cmip5q/protoq/views.pyingenericDoc 68. logging.debug('ok thus far')
    1. c=cimHandler(obj)
    2. try:
    3. cmethod=getattr(c,method)
    4. except:
    5. return render_badrequest('error.html',{'message':'Method %s not known as a generic document handler'%method})
    6. logging.debug('made it')
    7. return cmethod() ...
    8. def persistedDoc(request,docType,uri,version=0):
    9. ''' persisted document handling'''
    10. if docType not in ('platform','experiment','simulation','component','datacontainer'):
    11. return HttpResponseBadRequest('Invalid document type requests - %s'%docType)
    12. set=CIMObject.objects.filter(uri=uri)

 ▶ Local vars

VariableValue
c<cmip5q.protoq.cimHandler.cimHandler object at 0x9565eec>
cidu'45'
cmethod<bound method cimHandler.cimView of <cmip5q.protoq.cimHandler.cimHandler object at 0x9565eec>>
docTypeu'simulation'
klass<class 'cmip5q.protoq.models.Simulation'>
methodu'cimView'
obj<Simulation: fullTestSim1>
pkidu'3'
request<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': '6b005c357d16c2049898285e6f02fee1'}, META:{'CLASSPATH': '/home/rupert/!.resolver:/home/rupert/proj/metafor/ofp2fortml/antlr-3.1.jar:/home/rupert/proj/metafor/ofp2fortml/OpenFortranParser-0.7.1/build/OpenFortranParser.jar:/home/rupert/proj/metafor/ofp2fortml/jdom.jar', 'COLORTERM': 'gnome-terminal', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'CPATH': '/opt/intel/Compiler/11.1/059/ipp/ia32/include:/opt/intel/Compiler/11.1/059/mkl/include:/opt/intel/Compiler/11.1/059/tbb/include', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-IRoiS2v5tf,guid=4b3ca8349a676bdf292c08b64d905d58', 'DEFAULTS_PATH': '/usr/share/gconf/gnome.default.path', 'DESKTOP_SESSION': 'gnome', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'cmip5q.settings', 'DYLD_LIBRARY_PATH': '/opt/intel/Compiler/11.1/059/tbb/ia32/cc4.1.0_libc2.4_kernel2.6.16.21/lib', 'FPATH': '/opt/intel/Compiler/11.1/059/mkl/include', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GDMSESSION': 'gnome', 'GDM_KEYBOARD_LAYOUT': 'gb', 'GDM_LANG': 'en_GB.utf8', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'GNOME_KEYRING_CONTROL': '/tmp/keyring-TC8PUe', 'GNOME_KEYRING_PID': '1388', 'GTK_MODULES': 'canberra-gtk-module', 'HOME': '/home/rupert', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=6b005c357d16c2049898285e6f02fee1', 'HTTP_HOST': 'localhost:8001', 'HTTP_KEEP_ALIVE': '115', 'HTTP_REFERER': 'http://localhost:8001/cmip5/45/simulation/3/edit/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16', 'INCLUDE': '/opt/intel/Compiler/11.1/059/ipp/ia32/include:/opt/intel/Compiler/11.1/059/mkl/include', 'INTEL_LICENSE_FILE': '/opt/intel/Compiler/11.1/059/licenses:/opt/intel/licenses:/home/rupert/intel/licenses', 'IPPROOT': '/opt/intel/Compiler/11.1/059/ipp/ia32', 'LANG': 'en_GB.utf8', 'LD_LIBRARY_PATH': '/opt/intel/Compiler/11.1/059/lib/ia32:/opt/intel/Compiler/11.1/059/ipp/ia32/sharedlib:/opt/intel/Compiler/11.1/059/mkl/lib/32:/opt/intel/Compiler/11.1/059/tbb/ia32/cc4.1.0_libc2.4_kernel2.6.16.21/lib::/usr/local/lib:/home/rupert/Downloads/l_cprof_p_11.1.059_ia32/pset/32/gcc-3.2:/usr/local/lib:/usr/local/lib:/usr/local/lib:/usr/local/lib', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'LIB': '/opt/intel/Compiler/11.1/059/ipp/ia32/lib:', 'LIBRARY_PATH': '/opt/intel/Compiler/11.1/059/lib/ia32:/opt/intel/Compiler/11.1/059/ipp/ia32/lib:/opt/intel/Compiler/11.1/059/mkl/lib/32:/opt/intel/Compiler/11.1/059/tbb/ia32/cc4.1.0_libc2.4_kernel2.6.16.21/lib', 'LOGNAME': 'rupert', 'LS_COLORS': 'rs=!0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;3!6:', 'MANDATORY_PATH': '/usr/share/gconf/gnome.mandatory.path', 'MANPATH': '/opt/intel/Compiler/11.1/059/man/en_US:/opt/intel/Compiler/11.1/059/mkl/man/en_US:/usr/local/man:/usr/local/share/man:/usr/share/man:/home/rupert/bin/fcm/man', 'MKLROOT': '/opt/intel/Compiler/11.1/059/mkl', 'NLSPATH': '/opt/intel/Compiler/11.1/059/lib/ia32/locale/%l_%t/%N:/opt/intel/Compiler/11.1/059/ipp/ia32/lib/locale/%l_%t/%N:/opt/intel/Compiler/11.1/059/mkl/lib/32/locale/%l_%t/%N:/opt/intel/Compiler/11.1/059/idb/ia32/locale/%l_%t/%N', 'OLDPWD': '/home/rupert/proj/metafor/metaforSVN/cmip5q/cmip5q/cmip5q', 'ORBIT_SOCKETDIR': '/tmp/orbit-rupert', 'PATH': '/opt/intel/Compiler/11.1/059/bin/ia32:/home/rupert/Downloads/docbook/docbook-xsl-ns-1.76.1-RC2/tools/bin:/home/rupert/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/rupert/bin/fcm/bin:/opt/OxygenXMLEditor11', 'PATH_INFO': u'/cmip5/45/simulation/doc/3/cimView/', 'PWD': '/home/rupert/proj/metafor/metaforSVN/cmip5q/cmip5q/cmip5q', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8001', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.6.5', 'SESSION_MANAGER': 'local/ubuntu:@/tmp/.ICE-unix/1406,unix/ubuntu:/tmp/.ICE-unix/1406', 'SGML_CATALOG_FILES': '/home/rupert/Downloads/docbook/docbook-xsl-ns-1.76.1-RC2/catalog:/etc/sgml/catalog', 'SHELL': '/bin/bash', 'SHLVL': '1', 'SPEECHD_PORT': '7560', 'SSH_AGENT_PID': '1459', 'SSH_AUTH_SOCK': '/tmp/keyring-TC8PUe/ssh', 'TERM': 'xterm', 'TZ': 'Europe/London?', 'UDEdir': '', 'USER': 'rupert', 'USERNAME': 'rupert', 'WINDOWID': '92274692', 'XAUTHORITY': '/var/run/gdm/auth-for-rupert-sIjQhc/database', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-gnome:/etc/xdg', 'XDG_DATA_DIRS': '/usr/share/gnome:/usr/local/share/:/usr/share/', 'XDG_SESSION_COOKIE': 'c432e96636d3e07cc796584e4b01e8d0-1301306712.25308-410474222', 'XML_CATALOG_FILES': '/home/rupert/Downloads/docbook/docbook-xsl-ns-1.76.1-RC2/catalog.xml /etc/xml/catalog', '_': '/usr/bin/python', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb76e90d0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x953656c>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
  • /home/rupert/proj/metafor/metaforSVN/cmip5q/cmip5q/cmip5q/protoq/cimHandler.pyincimView 52. urls=commonURLs(self.obj,{'persisted':url})
    1. del urls['export']
    2. return render_to_response('cimpage.html',{'source':'Export to CMIP5','obj':self.obj,'html':html,
    3. 'urls':urls})
    4. def cimView(self):
    5. ''' View this in the CIMView interface '''
    6. html=self.obj.cimView() ...
    7. urls=commonURLs(self.obj,{})
    8. del urls['cimView'] # we've just done it
    9. return render_to_response('cimview.html',{'source':'cimView','obj':self.obj,'viewhtml':html,'urls':urls})

 ▶ Local vars

VariableValue
self<cmip5q.protoq.cimHandler.cimHandler object at 0x9565eec>
  • /home/rupert/proj/metafor/metaforSVN/cmip5q/cmip5q/cmip5q/protoq/models.pyincimView 304. # schematron = ET.Schematron(sct_doc)
    1. # return schematron.validate(CIMFragment)
    2. def cimView(self):
    3. ''' All document types should be viewable in the CIM View interface '''
    4. cv=CIMViewer()
    5. self.XMLO=self.xmlobject()
    6. return cv.cimViewDoc(self.XMLO) ...
    7. def export(self):
    8. ''' Make available for export in the atom feed '''
    9. # first redo validation to make sure this really is ok
    10. if self.isComplete:

 ▶ Local vars

VariableValue
cv<cmip5q.protoq.cimHandling.CIMViewer instance at 0x965b2ec>
self<Simulation: fullTestSim1>
  • /home/rupert/proj/metafor/metaforSVN/cmip5q/cmip5q/cmip5q/protoq/cimHandling.pyincimViewDoc 303. m = modelView(model, 'model')
    1. m.getnavname(model)
    2. mods.append(m)
    3. #if viewtype == 'model':
    4. #m=modelView(CIMfile, viewtype)
    5. #m=modelView(CIMdoc,'model')
    6. m=modelView(qnModels[0],'model') ...
    7. m.genhtml(qnModels[0])
    8. #return render_to_response('ModelView.html',{'mods':mods,'exps':exps,'sims':sims,'datas':datas, 'code':m.code})
    9. #cimHtml=''
    10. #return cimHtml

 ▶ Local vars

Change History

comment:1 Changed 4 years ago by gerry

  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.