Hi

I installed the latest from trunk today and am now getting the following.

Traceback(most recent call last):
  File"C:\dev\web2py\gluon\restricted.py",line194,inrestricted
    execccodeinenvironment
  File"C:/dev/web2py/applications/FoodPantry/controllers/default.py"  
<http://127.0.0.1:8000/admin/default/edit/FoodPantry/controllers/default.py>,line155,in<module>
  File"C:\dev\web2py\gluon\globals.py",line149,in<lambda>
    self._caller=lambdaf:f()
  File"C:\dev\web2py\gluon\tools.py",line2467,inf
    returnaction(*a, **b)
  File"C:/dev/web2py/applications/FoodPantry/controllers/default.py"  
<http://127.0.0.1:8000/admin/default/edit/FoodPantry/controllers/default.py>,line108,inparticipants
    ui='jquery-ui',csv=False,details=False)
  File"C:\dev\web2py\gluon\sqlhtml.py",line1868,insmartgrid
    user_signature=user_signature,**kwargs)
TypeError:unbound method grid()must be called withSQLFORM  instance as first 
argument(got Query instance instead)



My call to the grid is:

    columns = ['member.firstName', 'member.lastName', 'member.city',
               'member.state', 'member.phone', 'member.joinedOn',
               'memberCampaign.campaignId',
               'memberCampaign.amount', 'memberCampaign.paidOn',
               'memberTag.tagId']
    orderby = [db.member.lastName, db.member.firstName]
    db.memberCampaign['_plural'] = 'Campaigns'
    db.memberTag['_plural'] = 'Tags'
    grid = SQLFORM.smartgrid(db.member, columns=columns, details=False,
                             ui='jquery-ui', csv=False)
    return dict(grid=grid)

Any thoughts on what might be causing this.  Worked fine up until today.

    -Jim

--
Jim Steil
VP of Information Technology
Quality Liquid Feeds, Inc.
608.935.2345 office
608.341.9896 cell

Reply via email to