SHARE
TWEET

Untitled

a guest Dec 16th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. OpenERP
  2.  
  3. MITR
  4.  
  5. ธิดา ใจงาม | LOGOUT
  6. MITR TECHNICAL CONSULTANT
  7.  
  8. 1 Empty timesheet
  9.  
  10.     Skip to navigation [n]
  11.     Skip to content [c]
  12.     Skip to footer [f]
  13.  
  14.     Project
  15.     Timesheet
  16.     Project in Hand
  17.     Project Status
  18.     Utilization
  19.     Timesheet Report
  20.  
  21. socket://en4@localhost:8070 en_US
  22.  
  23. Powered by openerp.com
  24.  
  25.  
  26. <type 'exceptions.IndexError'>  Python 2.6.6: /usr/bin/python
  27. Wed Sep 14 17:41:37 2011
  28.  
  29. A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
  30.  /usr/lib/pymodules/python2.6/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/production/projects/status')
  31.   604                     if self.handler:
  32.   605                         self.stage = 'handler'
  33.   606                         cherrypy.response.body = self.handler()
  34.   607                    
  35.   608                     self.stage = 'before_finalize'
  36. global cherrypy = <module 'cherrypy' from '/usr/lib/pymodules/python2.6/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
  37.  /usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
  38.    23     def __call__(self):
  39.    24         try:
  40.    25             return self.callable(*self.args, **self.kwargs)
  41.    26         except TypeError, x:
  42.    27             test_callable_spec(self.callable, self.args, self.kwargs)
  43. self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <bound method Root.default of <openobject.controllers._root.Root object>>, self.args = ('production', 'projects', 'status'), self.kwargs = {}
  44.  /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'production', 'projects', 'status'), **kw={'_': '1315996897717'})
  45.   180                 raise cherrypy.HTTPError(405)
  46.   181
  47.   182             res = func(*args, **kw)
  48.   183             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
  49.   184                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
  50. global res = '/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/doc/openerp-web.cfg', func = <function default>, args = (<openobject.controllers._root.Root object>, 'production', 'projects', 'status'), kw = {'_': '1315996897717'}
  51.  /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('production', 'projects', 'status'), **kw={'_': '1315996897717'})
  52.    85             request.handler = cherrypy.NotFound()
  53.    86
  54.    87         return request.handler()
  55.    88
  56.    89     def find_handler(self):
  57. request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
  58.  /usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
  59.    23     def __call__(self):
  60.    24         try:
  61.    25             return self.callable(*self.args, **self.kwargs)
  62.    26         except TypeError, x:
  63.    27             test_callable_spec(self.callable, self.args, self.kwargs)
  64. self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <function status>, self.args = (), self.kwargs = {}
  65.  /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={})
  66.   110             # User is logged in; allow access
  67.   111             clear_login_fields(kw)
  68.   112             return fn(*args, **kw)
  69.   113         else:
  70.   114             action = kw.get('login_action', '')
  71. fn = <bound method Project.status of <mitr.controllers.project.Project object>>, args = (), kw = {}
  72.  /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<mitr.controllers.project.Project object>,), **kw={})
  73.   180                 raise cherrypy.HTTPError(405)
  74.   181
  75.   182             res = func(*args, **kw)
  76.   183             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
  77.   184                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
  78. global res = '/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/doc/openerp-web.cfg', func = <function status>, args = (<mitr.controllers.project.Project object>,), kw = {}
  79.  /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/mitr/controllers/project.py in status(self=<mitr.controllers.project.Project object>, uid=None, pid=None, **kws={})
  80.   968                 wg = MitrGanttCalendar('project.task', [], view, conditions=args)"""
  81.   969
  82.   970             return dict(widget=wg.render(), wg_javascript=wg.javascript, wg_css=wg.css, params=params)
  83.   971         else:
  84.   972             return dict(widget="คุณยังไม่ได้รับการมอบหมายงาน", wg_javascript=[], wg_css=[], params=params)
  85. builtin dict = <type 'dict'>, widget undefined, wg = MitrGanttCalendar, wg.render = <bound method MitrGanttCalendar.render of MitrGanttCalendar>, wg_javascript undefined, wg.javascript = [JSLink, JSLink, JSLink, JSLink, JSLink, JSLink], wg_css undefined, wg.css = [CSSLink, CSSLink, CSSLink, CSSLink], params = {'division_list': [(1, u'\u0e2d\u0e2d\u0e01\u0e4...1, 2], '_terp_errors': {}, '_terp_selectable': 0}
  86.  /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/widgets/_base.py in render(self=MitrGanttCalendar, value=None, **params={})
  87.   213
  88.   214     def render(self, value=None, **params):
  89.   215         return self.display(value, **params)
  90.   216
  91.   217     def retrieve_css(self):
  92. self = MitrGanttCalendar, self.display = <bound method MitrGanttCalendar.display of MitrGanttCalendar>, value = None, params = {}
  93.  /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/widgets/_base.py in display(self=MitrGanttCalendar, value=None, **params={'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...})
  94.   210         return tools.render_template(
  95.   211                 tools.load_template(
  96.   212                     self.template), params)
  97.   213
  98.   214     def render(self, value=None, **params):
  99. self = MitrGanttCalendar, self.template = 'mitr/widgets/templates/gantt.mako', params = {'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...}
  100.  /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/tools/_expose.py in render_template(template=<mako.template.Template object>, kw={'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...})
  101.   139         kw['ctx'] = kw.pop('context')
  102.   140
  103.   141     return utils.NoEscape(template.render_unicode(**kw))
  104.   142
  105.   143
  106. global utils = <module 'openobject.tools._utils' from '/usr/loc...web-6.0.2-py2.6.egg/openobject/tools/_utils.pyc'>, utils.NoEscape = <class 'openobject.tools._utils.NoEscape'>, template = <mako.template.Template object>, template.render_unicode = <bound method Template.render_unicode of <mako.template.Template object>>, kw = {'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...}
  107.  /usr/lib/pymodules/python2.6/mako/template.py in render_unicode(self=<mako.template.Template object>, *args=(), **data={'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...})
  108.   196                                 args,
  109.   197                                 data,
  110.   198                                 as_unicode=True)
  111.   199        
  112.   200     def render_context(self, context, *args, **kwargs):
  113. as_unicode undefined, builtin True = True
  114.  /usr/lib/pymodules/python2.6/mako/runtime.py in _render(template=<mako.template.Template object>, callable_=<function render_body>, args=(), data={'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...}, as_unicode=True)
  115.   401     context._with_template = template
  116.   402    
  117.   403     _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
  118.   404     return context._pop_buffer().getvalue()
  119.   405
  120. global _render_context = <function _render_context>, template = <mako.template.Template object>, callable_ = <function render_body>, context = <mako.runtime.Context object>, args = (), global _kwargs_for_callable = <function _kwargs_for_callable>, data = {'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...}
  121.  /usr/lib/pymodules/python2.6/mako/runtime.py in _render_context(tmpl=<mako.template.Template object>, callable_=<function render_body>, context=<mako.runtime.Context object>, *args=(), **kwargs={'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...})
  122.   432         # if main render method, call from the base of the inheritance stack
  123.   433         (inherit, lclcontext) = _populate_self_namespace(context, tmpl)
  124.   434         _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  125.   435     else:
  126.   436         # otherwise, call the actual rendering method specified
  127. global _exec_template = <function _exec_template>, inherit = <function render_body>, lclcontext = <mako.runtime.Context object>, args = (), kwargs = {'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...}
  128.  /usr/lib/pymodules/python2.6/mako/runtime.py in _exec_template(callable_=<function render_body>, context=<mako.runtime.Context object>, args=(), kwargs={'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...})
  129.   455             _render_error(template, context, e)
  130.   456     else:
  131.   457         callable_(context, *args, **kwargs)
  132.   458
  133.   459
  134. callable_ = <function render_body>, context = <mako.runtime.Context object>, args = (), kwargs = {'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...}
  135.  /home/kathawut/mitr_widgets_templates_gantt_mako in render_body(context=<mako.runtime.Context object>, **pageargs={'calendar_fields': {'date_delay': {'kind': u'float', 'name': u'planned_hours'}, 'date_start': {'kind': u'datetime', 'name': u'date_start'}, 'date_stop': {'kind': u'datetime', 'name': u'date_end'}, 'day_length': 24}, 'colspan': 1, 'concurrency_info': None, 'cp': {'locale': <function get_locale at 0x88c272c>, '...b6c0c>, 'config': <function config at 0x893f8ec>}, 'css_class': 'mitrganttcalendar', 'css_classes': [], 'date_format': u'%m/%d/%Y', 'days': [], 'display_member': <function <lambda>>, 'events': [], ...})
  136.  
  137. <type 'exceptions.IndexError'>: list index out of range
  138.       args = ('list index out of range',)
  139.       message = 'list index out of range'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top