Hello,
after a couple of hours I finally got web2py development (with
debugging) working in Aptana Studio.

Helpful links for this:
http://pierrethibault.posterous.com/2010/10/web2py-eclipse-pydev-recipe.html
http://code.google.com/p/neo-web2py2eclipse/

However, there a two minor issues I want to resolve:

1) At default controller Aptana shows me errors at "@auth..."
decorators (Undefined variable auth). Also the service() in the call()-
function is unknown. You see my actual imports at the end of this
post.

2) Normally, I'm starting web2py manually from bash with "python2.7
web2py.py". But this way debugging does not work. If I want to start
debugging, I have to stop web2py and let it start from Aptana debug-
mode. Is there a way to make this more comfortable?


Imports in default.py:
<code>
if 0:
  None
  from gluon import *
  from gluon.tools import *
  from gluon.globals import *
  from gluon.html import *
  from gluon.validators import *
  from gluon.sql import *
  import gluon.fileutils
  from gluon.contrib.gql import GQLDB
  from gluon.sql import SQLDB
  from gluon.sqlhtml import SQLFORM
  from gluon.sql import SQLField
  from gluon.sqlhtml import SQLTABLE
  from gluon.http import redirect
  import gluon.languages.translator as T
  import gluon.compileapp.local_import_aux as local_import

  global cache; cache = gluon.cache.Cache()
  global request; request = gluon.globals.Request()
  global response; response = gluon.globals.Response()
  global session; session = gluon.globals.Session()
  global DAL; DAL = gluon.dal()
  global HTTP; HTTP = gluon.http()
  global LOAD; LOAD = gluon.compileapp.LoadFactory()
  db = DAL('sqlite://storage.sqlite')

from gluon import *
import sys, datetime
</code>

Regards, haggis

Reply via email to