Oh! You downloaded the file! You need to download the package, and install it as applications/plugin_t2 (just copy it).
To get the package, use this bazaar command: bzr branch lp:~mdipierro/t2/main I've mirrored t2 separately, so that people can grab a tarball - would you let me know if it works? If you grab one of the .gz or .bz2 archives these are compressed tar files - gunzip (or whatever the bz2 equivalent command is) and you should end up with a valid tar. Could you test if that tar works to instll (as an application) with web2py? Thank you, Yarko On Sun, Nov 9, 2008 at 3:03 AM, Brian <[EMAIL PROTECTED]> wrote: > > Hmmm, I wonder if I have an old copy of t2. I downloaded it from > here: > > > http://bazaar.launchpad.net/~mdipierro/t2/main/files/48?file_id=modules-20080922043548-uj1qtzubnbxj3dm6-12 > > Is that the right location to get T2? > > When I look in the search function on my copy, I see this section of > code: > > def search(self,*tables,**opts): > ... > form=FORM(SELECT(_name='cond',*options), > INPUT(_name='value',value=request.vars.value or > '0'), > ' ordered by ', > SELECT(_name='order',*orders),' refine? ', > INPUT(_type='checkbox',_name='refine'), > INPUT(_type='submit')) > ... > return DIV(TABLE(TR(form)),_class='t2-search') > > From that it looks like there's no way to remove the 'cond' and > 'order' dropdowns. Am I reading that wrong (I'm new to Python)? > > Thanks, > Brian > > > > On Nov 8, 8:34 pm, mdipierro <[EMAIL PROTECTED]> wrote: > > db.define_table('mytable',SQLField('a'),SQLField('b')) > > db.mytable.a.requires=IS_IN_SET(['one','two','three']) > > > > def index(): > > db.mytable['displays']=['a] > > > > form=t2.search(db.mytable,query=db.mytable.b=='something',orderby=None) > > return dict(form=form) > > > > On Nov 8, 8:20 pm, "Domain Admin" <[EMAIL PROTECTED]> wrote: > > > > > Does anyone know how to use t2.search()? I've got it working like in > the > > > puppies application in the t2 video. I'd like to make it so there's > only > > > one input field and set the other options in my code (i.e. remove the > > > dropdown selects and 'refine' checkbox). Is there any way to do this? > I've > > > been trying to figure it out for about three hours now, but I can't > find a > > > way to do it. > > > Thanks, > > > Brian > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---