Re: [web2py] Re: web2py 2.1.1 is OUT!

2012-10-25 Thread Vasile Ermicioi
> This is the best version! its stable and fast. yes, but is backward incompatible with a few of my apps, routes_app_raw is broken :( --

Re: [web2py] SQLFORM.grid created from request.vars - search, pagination etc breaks

2012-10-25 Thread Niphlod
a) you can have the search form to do a get instead of a post. In that way when the user presses the button "submit" he is redirected to your page, and that page can load the grid with the parameters specified into request.vars b) with this you are sure that the parameters are reset if the user

[web2py] Re: browser request

2012-10-25 Thread Niphlod
What are you expecting from a "raw request" ? Doesn't request.env suffice ? On Wednesday, October 24, 2012 11:33:52 PM UTC+2, patrick moon wrote: > > is it possible to get a raw "request" from a browser in web2py? right now > it looks like some of the request information is converted to > gluon

[web2py] how to hide the [wiki] menu option in auth.wiki

2012-10-25 Thread Andrew W
the [wiki] menu option is good for the person maintaining the website, but shouldn't be seen by others (at least those not logged in) . How do I hide it for unauthorised users ? Any update on when the book will contain auth.wiki information ? I can see plugin_wiki still there. Thanks Andrew W

[web2py] Re: routes.py not working in 2.0.9

2012-10-25 Thread LightOfMooN
Hello. I have routes_in = ( ('/admin/$anything', '/admin/$anything'), ('(?P.*)/appadmin/(?P.*)', '\g/appadmin/\g'), ('.*://.*mydomain.com:.* /$anything', '/welcome/$anything'), ) routes_out = ( ('(?P.*)/admin/(?P.*)', '\g/admin/\g'), ('(?P.*)/appadmin/(?P.*)', '\g/appadmin/

Re: [web2py] Re: Image Tutorial and linked_tables

2012-10-25 Thread Leonel Câmara
Can you tell me if this fixes it? @auth.requires_membership('manager') def manage(): db.comment grid = SQLFORM.smartgrid(db.image) return locals() Quarta-feira, 24 de Outubro de 2012 20:25:33 UTC+1, David Simmons escreveu: > > Hi Jim > > my model is: > > db.define_table('image', >

[web2py] Re: routes.py not working in 2.0.9

2012-10-25 Thread LightOfMooN
I wrote routes.py from the book: routes_in = ( ('/testme', '/examples/default/index'), )routes_out = ( ('/examples/default/index', '/testme'), ) And go to mydomain.com/testme and get Request Error. But if i check href attribute from "examples" app link in admin, it's 'mydomain.com/testme'

Re: [web2py] Re: routes.py not working in 2.0.9

2012-10-25 Thread Vasile Ermicioi
since I started with web2py routes were the most uneasy and unstable part of web2py, and how awesome is web2py in all other parts - dal, template, sql forms, authentication, building services(json,xml) but with routes always had problems - no unicode support, very hard to 'rewrite' urls, not quite

[web2py] Re: Formatter and values=None problem

2012-10-25 Thread Paolo Caruccio
Did you try: db.tablename.fieldname.represent= lambda value: value if value else 'NT" ? web2py book reference http://web2py.com/books/default/chapter/29/06?search=represent#Record-representation Il giorno giovedì 25 ottobre 2012 03:20:29 UTC+2, Joe Barnhart ha scritto: > > I have an applicatio

[web2py] Re: about editing database

2012-10-25 Thread alazar baharu
hello dear bro thanks for replaying to me just in short what i want to do is there is a model db.define_table( 'Office', Field('Office_level'), Field('Office_building'), Field('Office_number'), Field('Maximum_load'), Field('Free_space'), Field('Office_discription', 'tex

[web2py] Re: Formatter and values=None problem

2012-10-25 Thread Paolo Caruccio
or better def format_function (value) formatted_value = . return formatted_value db.tablename.fieldname.represent= lambda value,row: format_function(value) if value else "Not Standard Time" Il giorno giovedì 25 ottobre 2012 13:31:43 UTC+2, Paolo Caruccio ha scritto: > > Did you

[web2py] Re: sessions2trash.py not working in v2.2.1, fix included

2012-10-25 Thread Massimo Di Pierro
Thanks, in trunk! On Wednesday, 24 October 2012 18:22:02 UTC-5, Jim Karsten wrote: > > current.response._dbtable_and_field is referenced in sessions2trash.py. > That value was replaced in version 2.2.1 with > current.response.session_db_table, current.response.session_db_record_id, > and curren

Re: [web2py] Re: web2py 2.1.1 is OUT!

2012-10-25 Thread Massimo Di Pierro
Yes, but it is broken because of a bug, not intentionally and we are about to fix it. If you have not done so already, open a ticket about it. On Thursday, 25 October 2012 02:35:57 UTC-5, Vasile Ermicioi wrote: > > > This is the best version! its stable and fast. > > > yes, but is backward incom

[web2py] Re: how to hide the [wiki] menu option in auth.wiki

2012-10-25 Thread Massimo Di Pierro
I agree. Changed the behavior in trunk. On Thursday, 25 October 2012 03:44:08 UTC-5, Andrew W wrote: > > the [wiki] menu option is good for the person maintaining the website, but > shouldn't be seen by others (at least those not logged in) . > How do I hide it for unauthorised users ? > > Any up

Re: [web2py] Re: routes.py not working in 2.0.9

2012-10-25 Thread Massimo Di Pierro
We'll change them in web3py. Suggestions? On Thursday, 25 October 2012 06:10:44 UTC-5, Vasile Ermicioi wrote: > > since I started with web2py routes were the most uneasy and unstable part > of web2py, > and how awesome is web2py in all other parts - dal, template, sql forms, > authentication, bu

[web2py] Re: how to hide the [wiki] menu option in auth.wiki

2012-10-25 Thread apps in tables
why is auth.wiki different from everything else in web2py? --

[web2py] an editor ...

2012-10-25 Thread apps in tables
Hi, Pls, don't laugh... Does any one know of an editor that collapse and expand the functions within the controller? Regards, Ashraf --

[web2py] Re: an editor ...

2012-10-25 Thread Niphlod
komodo, geany, notepad++, eclipse, netbeans... On Thursday, October 25, 2012 3:49:57 PM UTC+2, apps in tables wrote: > > Hi, > > Pls, don't laugh... > > Does any one know of an editor that collapse and expand the functions > within the controller? > > Regards, > > Ashraf > --

[web2py] Re: an editor ...

2012-10-25 Thread David Marko
Eclipse + Pydev Dne čtvrtek, 25. října 2012 15:49:57 UTC+2 apps in tables napsal(a): > > Hi, > > Pls, don't laugh... > > Does any one know of an editor that collapse and expand the functions > within the controller? > > Regards, > > Ashraf > --

[web2py] Re: grid export button

2012-10-25 Thread Omi Chiba
I posted on this on my blog and someone pointed that it will get ticket when clicking View button. Do you know how to fix? Problem looks like here. export_menu_links = ori

[web2py] Re: an editor ...

2012-10-25 Thread apps in tables
it is in front of me all the time ... my mind needs fixing. --

[web2py] BUG: appadmin cannot save to db

2012-10-25 Thread lyn2py
I'm on Version 2.2.1 (2012-10-22 18:50:13) stable This is specific to *database admin *in *appadmin.* I needed to change some data, but appadmin will not save the items, although on response.flash / session.flash it says "done!" --

[web2py] Re: an editor ...

2012-10-25 Thread lyn2py
+1 to* SublimeText 2* On Thursday, October 25, 2012 10:44:34 PM UTC+8, apps in tables wrote: > > it is in front of me all the time ... > > my mind needs fixing. --

Re: [web2py] BUG: appadmin cannot save to db

2012-10-25 Thread Richard Vézina
Did you use appdamin with a new app or you use the appadmin of your own app? If you use your own app appadmin did you think to replace it with the appadmin of the welcome? Richard On Thu, Oct 25, 2012 at 11:01 AM, lyn2py wrote: > I'm on Version 2.2.1 (2012-10-22 18:50:13) stable > > This is sp

[web2py] Re: grid export button

2012-10-25 Thread Paolo Caruccio
This happens because the url has arguments. please try with: {{extend 'layout.html'}} {{ if not request.args: w2p_grid_tbl = grid.element('table') if w2p_grid_tbl: original_export_menu = grid.element('div.w2p_export_menu') export_menu_links = original_export_menu.elements('a') export_menu_it

Re: [web2py] Re: routes.py not working in 2.0.9

2012-10-25 Thread LightOfMooN
Current pattern-based system is perfect. We made more than 20 projects with it. But it does not work on new web2py version (2.2.1). We used 1.99.7 before. четверг, 25 октября 2012 г., 18:23:13 UTC+5 пользователь Massimo Di Pierro написал: > > We'll change them in web3py. Suggestions? > > On Thur

Re: [web2py] BUG: appadmin cannot save to db

2012-10-25 Thread lyn2py
Good point. I will update and try it later. I need to replace appadmin.py only? Thanks Richard. --

[web2py] IS_IN_SET(['Myriad, "Trebuchet MS", sans-serif','"Helvetica Neue", Helvetica' ...

2012-10-25 Thread Annet
I'd like to have an IS_IN_SET validator with font sets, this doesn't work: fontset=IS_IN_SET(['myriad-pro-1, myriad-pro-2, Myriad, "Trebuchet MS", sans-serif','"Helvetica Neue", Helvetica, Arial, sans-serif'],zero=T('select a value')) In a view this: font-family: {{=session.customtheme.bodyFon

Re: [web2py] BUG: appadmin cannot save to db

2012-10-25 Thread Richard Vézina
appadmin.html to And by the way you should update : All files from static/ all generic files form views/ Make sure you backup you app before, so you can revert if you brake something. If you have modify layout.html you will have to compare what change in the new layout.html and replace the ele

Re: [web2py] BUG: appadmin cannot save to db

2012-10-25 Thread Richard Vézina
view/ appadmin.html generic.ics generic.load generic.rss layout.html generic.json generic.map generic.xml web2py_ajax.html generic.html generic.jsonp generic.pdf controller/ appadmin.py static/ css/* images/* js/* You can do this like that : >From web2py/applications cp -R welcome/static/* YO

[web2py] Re: browser request

2012-10-25 Thread patrick moon
exactly what i was looking for..was trying to get request.env.query_stringsince i have not add an intellisense ide to web2py, i didn't really know how to locate your suggestion and i missed it wading thru the doc. Thanks a million! On Thursday, October 25, 2012 1:25:47 AM UTC-7, Niphlod wr

[web2py] Instant Press CMS 2010?

2012-10-25 Thread António Ramos
no updates since 2010? Is it going to die? António --

[web2py] Re: IS_IN_SET(['Myriad, "Trebuchet MS", sans-serif','"Helvetica Neue", Helvetica' ...

2012-10-25 Thread Niphlod
output in views is always escaped (meant to be a "printable" string). If you need the raw value, you can use XML() On Thursday, October 25, 2012 6:27:53 PM UTC+2, Annet wrote: > > I'd like to have an IS_IN_SET validator with font sets, this doesn't work: > > fontset=IS_IN_SET(['myriad-pro-1, myr

Re: [web2py] Re: Image Tutorial and linked_tables

2012-10-25 Thread David Simmons
Hi Jim/Leonel tried both of your suggestions but still no luck. thanks Dave --

[web2py] page min height

2012-10-25 Thread Richard
Hello, Consider adding this to welcome : First suggestion (mycss.css to "make sure" that the user know where to put it app specific CSS rules and make easy the update of app web2py specific files) : For application specific CSS to allow user override "all" the other CSS without having to touch

[web2py] Re: Formatter and values=None problem

2012-10-25 Thread Joe Barnhart
Actually Paolo, I have a custom Validator which contains the formatter function. It is supplied automatically when I use the validator, so I do not get a chance to change its calling sequence as you show in the case of using "represents". Here is the validator class: class IS_ELAPSED_TIME(obj

Re: [web2py] page min height

2012-10-25 Thread Richard Vézina
Forget about the example of the sticky footer I gave... I will be back with a better implementation. There were many issues. Richard On Thu, Oct 25, 2012 at 3:32 PM, Richard wrote: > Hello, > > Consider adding this to welcome : > > First suggestion (mycss.css to "make sure" that the user know w

[web2py] Re: grid export button

2012-10-25 Thread Omi Chiba
It worked!! Thanks again. On Thursday, October 25, 2012 10:49:15 AM UTC-5, Paolo Caruccio wrote: > > This happens because the url has arguments. > > please try with: > > {{extend 'layout.html'}} > {{ > if not request.args: > w2p_grid_tbl = grid.element('table') > if w2p_grid_tbl: > original_exp

[web2py] Append to list:reference or list:string with update_record

2012-10-25 Thread Mark Li
Is it possible to append to a database list (like list:reference or list:string) with update_record, as opposed to explicitly stating the whole list for update_record? --

[web2py] downloading a synthetic csv

2012-10-25 Thread Jonathan Lundell
I want to build a dataset (list of lists) in response to a user request and cause a csv of that dataset to be downloaded. I have a working but ugly implementation that uses @service.csv. If I access the URL http://domain.com/app/default/call/csv/foo ...it works OK and downloads a file named 'f

[web2py] Re: Formatter and values=None problem

2012-10-25 Thread Paolo Caruccio
Why don't you manage None values in int_to_hms function? Il giorno giovedì 25 ottobre 2012 21:56:17 UTC+2, Joe Barnhart ha scritto: > > Actually Paolo, I have a custom Validator which contains the formatter > function. It is supplied automatically when I use the validator, so I do > not get a

Re: [web2py] page min height

2012-10-25 Thread Paolo Caruccio
Bootstrap extensions for footer to stick at the bottom seem to work. http://bootstrapfooter.codeplex.com/ Il giorno giovedì 25 ottobre 2012 23:29:20 UTC+2, Richard ha scritto: > > Forget about the example of the sticky footer I gave... I will be back > with a better implementation. > > There we

[web2py] Re: Error accessing users in Instant Press

2012-10-25 Thread Andrew W
I logged that one, and I emailed Martin with details of a fix. Hoping to here from him. On Sunday, September 30, 2012 5:47:22 AM UTC+13, Jimi wrote: > > Never mind, I see now it's been logged as an issue. > > On Sunday, September 23, 2012 11:17:49 AM UTC-4, Jimi wrote: >> >> >> New to web2py,

[web2py] Re: Instant Press CMS 2010?

2012-10-25 Thread Andrew W
You may be looking at the wrong version. There is one at https://bitbucket.org/mulonemartin/instantpress , last updated early 2012. You are probably looking at http://code.google.com/p/instant-press/. which I believe is the old version. Martin, could you remove the second one please (if it

[web2py] Re: Formatter and values=None problem

2012-10-25 Thread Joe Barnhart
I do manage the "None" value in my formatter, Paulo. But it never gets called because the built-in code of the Field class tests the value for None and then exits before calling my formatter. So it doesn't matter that my formatter can handle None -- it is never called. That's why I posted th

[web2py] Is the Windows download meant to have a wsgihandler.py file

2012-10-25 Thread Andrew W
Trying to run the windows app with Apache, but it doesn't have the wsgihandler.py file. Can this version run with Apache, or do I need the source version. What should WSGIScriptAlias in the Apache conf file be set to ? --

[web2py] Re: IS_IN_SET(['Myriad, "Trebuchet MS", sans-serif','"Helvetica Neue", Helvetica' ...

2012-10-25 Thread Annet
Thanks for your reply. font-family: {{=XML(session.customtheme. bodyFontFamily)}}; ... solves the problem. Kind regards, Annet --

[web2py] SQLFORM.factory(db.table) date format problem.

2012-10-25 Thread Annet
In a table person I have the following validator on date of birth: isdate = dict(type='date',requires=IS_DATE(format='%Y-%m-%d'),represent = lambda v: v.strftime('%d/%m/%Y') if v else '') In appadmin and in form.crud.update(table=db.person, record=row) the date is represented correctly, however

[web2py] on_define=set_requirement does not work

2012-10-25 Thread Annet
On a tabel tie: db.define_table('tie', Field('hubID','reference node',**isnode), Field('nodeID','reference node',default='',ondelete='CASCADE',notnull=True), ... on_define=set_requirement, migrate=False) I defined the following validator: def set_requirement(tie): tie.node