ok,  I took the time to dive abit deeper in the problem and i manage
to trace it and solve it.
It now even seems to work under fast-cgi, so case closed.

Thank you!

The problem was probably that I upgraded from trac 0.11.2 to 0.11.6.

in agilo/utils/db.py

def get_db_type(env):
    """Returns the DB type for the given trac Environment"""
    assert isinstance(env, Environment), \
        "env should be an instance of trac.Environment, got %s" % str(env)
    # Get The Databse Manager
    dbm = DatabaseManager(env)
    # Get the Connector Object for the current DB schema
    connector, args = dbm._get_connector()
    # Ask the connector the schema
    print "support schemas: %s" %  connector.get_supported_schemes()
    db_type, trans = connector.get_supported_schemes()[0]
    # Returns the db_type
    return db_type

get_supported_schemes does not return a list,tuple,array whatever.
Just a single generator object.

i fixed this by patching the calling function:
def get_null(env, equal=True):
    """
    Return the SQL expression to test NULL for the current database
    type, if equal is True returns a positive check, otherwise a negative
    """
    print "38: entered get null"
    nulls = {
#             'sqlite':   (' NOT', ' ISNULL'),-
#             'default':  ('!', '=NULL')}
             'default': (' IS NOT NULL', ' IS NULL'),
            }
   #do not retrieve the db environment, just use the default
    t_null = nulls.get('default')
    if equal:
        print "if equal"-
        return t_null[1]
    else:
        print "if equal not"
        return t_null[0]



Jos




On Mon, Mar 15, 2010 at 2:08 PM, Felix Schwarz
<[email protected]> wrote:
> Am 12.03.2010 14:47, schrieb Jos Houtman:
>>
>> Trac detected an internal error:
>> AttributeError: 'NoneType' object has no attribute 'b_type'
>
> Looks like the backlog was not found somehow... Did you modify/rename the
> sprint backlog? Can you check the agilo_backlog database table?
>
> fs
>
> --
> Follow Agilo on Twitter: http://twitter.com/agiloforscrum
> -----
> You received this message because you are subscribed to the Google
> Groups "Agilo for Scrum" group. This group is moderated by agile42 GmbH
> http://www.agile42.com and is focused in supporting Agilo for Scrum users.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/agilo?hl=en
>

-- 
Follow Agilo on Twitter: http://twitter.com/agiloforscrum
-----
You received this message because you are subscribed to the Google
Groups "Agilo for Scrum" group. This group is moderated by agile42 GmbH 
http://www.agile42.com and is focused in supporting Agilo for Scrum users.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/agilo?hl=en

Reply via email to