[web2py] auth.requires_login() inside a view

2011-11-10 Thread elffikk
hi, I need to display a form (similar to a blog post), but only when a user is registered, but the page should be displayed even if user is not authenticated, except the form #a list of posts {{if auth.user:}} {{=form}} {{else:}} h3{{=T('Posting messages requires login')}}/h3

Re: [web2py] Offline Access to web2py manual?

2011-11-10 Thread BrendanC
Bruno, Exactly what I was looking for - many thanks! This is the sort of thing that should be documented rather than hidden. BTW - Where/how did you come up with that syntax? Thx much, BrendanC

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-10 Thread Gour
On Wed, 9 Nov 2011 23:52:19 -0200 Bruno Rocha rochacbr...@gmail.com wrote: The CMS (bloog) from Lucas is nice, but it is incomplete, can be used as base for a new project. Better than Instant Press? If I'd have skills, I'd 'port' Concrete5 to web2ps making the match in heaven from C5's

Re: [web2py] Offline Access to web2py manual?

2011-11-10 Thread Bruno Rocha
Someone posted it here in this list, I just favorited here for future use. On Thu, Nov 10, 2011 at 6:33 AM, BrendanC bren...@gmail.com wrote: Bruno, Exactly what I was looking for - many thanks! This is the sort of thing that should be documented rather than hidden. BTW - Where/how did you

[web2py] changing default redirect after failed login attempt.

2011-11-10 Thread Chris Steel
Everything seems to work with the following set up except for when signing on with an incorrect password in which case the user gets directed to default/user/login instead of plugin_user_admin/user/login. Basically I have moved the user function into a different controller along with the

Re: [web2py] auth.requires_login() inside a view

2011-11-10 Thread Bruno Rocha
* {{if auth.user:}} **{{=form}} ** {{else:}} **h3{{=T('Posting messages requires login')}}/h3 ** a href={{=URL(''default, user, args=login, vars={_next: URL(default,wheretoredirect)})}} **Click here to login ** /a **{{pass}}* -- Bruno Rocha

[web2py] Re: web(2/3)-based CMS

2011-11-10 Thread Gour
On Wed, 9 Nov 2011 15:44:40 -0800 (PST) Carlos Hanson car...@clanhanson.com wrote: As far as a CMS vs a Blog goes, I have always viewed a Blog and viewing content in a particular manner. To me a Blog is a subset of a CMS. If we have a basic CMS, adding a Blog simply means organizing that

Re: [web2py] auth.requires_login() inside a view

2011-11-10 Thread Vasile Ermicioi
ok, thank you On Thu, Nov 10, 2011 at 10:46 AM, Bruno Rocha rochacbr...@gmail.com wrote: * {{if auth.user:}} **{{=form}} ** {{else:}} **h3{{=T('Posting messages requires login')}}/h3 ** a href={{=URL(''default, user, args=login, vars={_next:

Re: [web2py] changing default redirect after failed login attempt.

2011-11-10 Thread Bruno Rocha
In Auth class we have: settings.on_failed_authentication = lambda x: redirect(x) so try auth.settings.on_failed_authentication = redirect(URL(.)) On Thu, Nov 10, 2011 at 6:45 AM, Chris Steel chris.st...@gmail.com wrote: Everything seems to work with the following set up except for when

Re: [web2py] changing default redirect after failed login attempt.

2011-11-10 Thread Bruno Rocha
forget about it, it needs to be a lambda because of: return call_or_redirect( self.settings.on_failed_authentication, self.settings.login_url+\ '?_next='+urllib.quote(next)) it says that should be

[web2py] login error

2011-11-10 Thread Manoj Sharma
hello friends when i was given auth.requires.login() on table then i was try for login then they login page give me need verification error... if u know plz give me need full think thanks

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
Anthony you're right. the class .columns is Skeleton. I repeated the case indicated by Massimo without modify other than static/css/ web2py.css (the html code is generated automatically from web2py). The ugly layout depended on the width of the table (containing web2py_grid) inserted in

Re: [web2py] login error

2011-11-10 Thread Bruno Rocha
if this key in db.py (or other model) is set to False auth.settings.registration_requires_verification = False you have not to see this message. if thats True, you have to check your email for verification link (is mail configured?) On Thu, Nov 10, 2011 at 3:31 AM, Manoj Sharma

[web2py] On Load behaviour and template extensions

2011-11-10 Thread BrendanC
This may be more of a js/browser question than a web2py question, but I'd like to clarify what happens in the following scenario. If I define an 'onload js call' in both the the base layout and a layout that extends the base ( iow both templates make 'Onload' calls) which of the following

Re: [web2py] auth.requires_login() inside a view

2011-11-10 Thread Vasile Ermicioi
this seems a bit shorter for what I need vars={'_next': request.url}) a href={{ =URL('default', 'user', args='login', vars={'_next': request.url}) }} {{=T('Click here to login')}} /a

Re: [web2py] Offline Access to web2py manual?

2011-11-10 Thread ~redShadow~
On Wed, 2011-11-09 at 23:23 -0200, Bruno Rocha wrote: On *UNix terminal wget --recursive -l 1 --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains web2py.com --no-parent http://www.web2py.com/book This works great (somebody posted it on

[web2py] Re: On Load behaviour and template extensions

2011-11-10 Thread Anthony
web2py will produce a single HTML page to send to the browser, so look at the resulting code in that page, and it will be handled however the browser would normally handle such JS. If you are assigning an event handler to the window.onload event, I believe each new assignment will override any

Re: [web2py] Offline Access to web2py manual?

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 6:58:44 AM UTC-5, Samuele Santi wrote: Why are always the more useful things undocumented?? This is not any kind of official web2py method -- it's a general method available in Linux for copying the content of websites (and there are other methods). We can't

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Anthony
OK, then I assume it's safe to remove the .columns references, right? That way it will still work when not using Skeleton. Anthony On Thursday, November 10, 2011 4:18:12 AM UTC-5, Paolo Caruccio wrote: Anthony you're right. the class .columns is Skeleton. I repeated the case indicated by

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-10 Thread Anthony
Looks like there are several existing projects that can be drawn from: https://bitbucket.org/mulonemartin/instantpress/wiki/Home https://github.com/lucasdavila/web2py-cms https://groups.google.com/forum/#!topic/web2py/XzK3cQ-HBZo/discussion

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-10 Thread Anthony
Plus plugin_wiki. On Thursday, November 10, 2011 7:35:46 AM UTC-5, Anthony wrote: Looks like there are several existing projects that can be drawn from: https://bitbucket.org/mulonemartin/instantpress/wiki/Home https://github.com/lucasdavila/web2py-cms

[web2py] Re: web2py with twitter bootstrap - very clean interface ...

2011-11-10 Thread Anthony
LESS is used by Bootstrap but is a completely separate project -- see http://lesscss.org. On Thursday, November 10, 2011 12:09:43 AM UTC-5, Rahul wrote: I would like to make it work for me. What all you included? Where? what is in the view? I tried to include this (below) previously - but

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
We still need to identify the div container to prevent the CSS rules apply to generic tags (such as table and div). In the case under discussion, I used div.columns because it already existed in the html layout. I noticed that the table is inside another div generic. We could give a identities

[web2py] html from text

2011-11-10 Thread peter
I have a couple of problems with 'text' fields in databases. I want to be able to use a WYSIWIG editor, so I have set up ckeditor using the instructions here http://www.web2pyslices.com/slices/take_slice/18 This works fine, but there is no toolbar appearing with the editor. How does one get the

Re: [web2py] Download file and redirect (or redirect and auto-download file)

2011-11-10 Thread Anthony
I don't think this is a web2py-specific issue. Check the internet for solutions: http://stackoverflow.com/questions/156686/how-to-start-automatic-download-of-a-file-in-internet-explorer, http://www.willmaster.com/blog/automation/one-link-download-and-redirect.php,

[web2py] markmin and text fields

2011-11-10 Thread peter
If I have a text field in a database, and I try displaying this using the MARKMIN function, then the conversion does not happen. i.e *text* gets output as it stands rather than emboldened. What translation does one need to do to a 'text' field to allow MARKMIN to work correctly. Thanks

Re: [web2py] Offline Access to web2py manual?

2011-11-10 Thread Johann Spies
wget --recursive -l 1 --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains web2py.com --no-parent http://www.web2py.com/book You can add --mirror as an extra option. In that case it will skip files that are already on your computer and just

[web2py] Re: html from text

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 7:58:57 AM UTC-5, peter wrote: I have a couple of problems with 'text' fields in databases. I want to be able to use a WYSIWIG editor, so I have set up ckeditor using the instructions here http://www.web2pyslices.com/slices/take_slice/18 This works fine,

[web2py] Re: markmin and text fields

2011-11-10 Thread Anthony
In markmin, **text** is for bold, not *text*. See http://web2py.com/book/default/chapter/13#Markmin-syntax. Anthony On Thursday, November 10, 2011 8:02:52 AM UTC-5, peter wrote: If I have a text field in a database, and I try displaying this using the MARKMIN function, then the conversion

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 7:50:01 AM UTC-5, Paolo Caruccio wrote: We still need to identify the div container to prevent the CSS rules apply to generic tags (such as table and div). In the case under discussion, I used div.columns because it already existed in the html layout. I

[web2py] Re: CAS auto login for all apps

2011-11-10 Thread Anthony
On Wednesday, November 9, 2011 11:58:36 PM UTC-5, Cahya Dewanta wrote: Anthony. Just tried and indeed it works. Can I combine it with pepper_bg's tips so I get the same behaviour? Once login will autologin all apps if we visit them. I still need to click login button right now. I'm not

Re: [web2py] Re: Online Book Typo

2011-11-10 Thread Anthony
On Wednesday, November 9, 2011 11:13:02 PM UTC-5, mikech wrote: +1 for this. I wasn't thinking about major edits, but we could see whether the typos etc. had already been reported and not crowd the group with repeats. The online book is temporarily locked, but normally when a minor typo is

[web2py] excessive memory usage on webfaction

2011-11-10 Thread Plumo
I used the automatic script to setup web2py on webfaction: https://wiki.webfaction.com/wiki/Web2py-LatestSource But then within a few hours my processes were terminated because of excessive memory use: baron - 1MB - 3:56:53 - 10201 - /home2/baron/webapps/web2py/apache2/bin/httpd.worker -f

[web2py] Re: mysql w/ web2py DAL issue

2011-11-10 Thread Massimo Di Pierro
Does you have a custom model for auth_user? does it have a registration_id? Do you have data in mysql? If not, drop the entire database, delete stuff in databases/* and run it again. This is a problem with MySQL not supporting multiple alter table in transaction. Somehow is got stuck in between

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
Ping! There is a question at the bottom of my last email if some one has any idea? Thanks Richard On Wed, Nov 9, 2011 at 5:11 PM, Richard Vézina ml.richard.vez...@gmail.comwrote: Ok I just read trunk sqlhtml.py that already have the patch I was about to submit (Miss this easy one :) if

Re: [web2py] excessive memory usage on webfaction

2011-11-10 Thread Vasile Ermicioi
search this group, I provided some steps to install uwsgi with web2py and to limit memory consumption

[web2py] Re: Apostrophe error in the database

2011-11-10 Thread Massimo Di Pierro
There are two warnings in this page: http://www.pythonsecurity.org/wiki/web2py/?version=22001 They have bot been addressed one year ago. They have been addressed by quoting the string. This is the expected bahviour. What problems does it cause you? Massimo On Nov 9, 6:55 pm, africanacloud

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
On Wednesday, November 9, 2011 5:11:40 PM UTC-5, Richard wrote: Now I would like to know how I can intercept the html form before it get in the face of the user... I mean I use to do this hack to show user help bubble to the user : form = crud.create(db[request.args(0)]) for i in

[web2py] Re: html from text

2011-11-10 Thread peter
thanks

[web2py] Re: changing default redirect after failed login attempt.

2011-11-10 Thread Christopher Steel
Ah ha! This works like a charm, makes sense auth.settings.controller = 'plugin_user_admin'

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread eric tchonfene
This the result I get when I call the function this the xml that I get back my apostrophe is changed to #x27; NameLady#x27;sRoom/Name On Thu, Nov 10, 2011 at 8:31 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: There are two warnings in this page:

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
Other css rules are related to the specific case and override the general css rules applied to web2py_grid. But I'm agreed with you: the best solution is to give a class or an id to the container div. Paolo

[web2py] SQLFORM.grid - columns arg is gone

2011-11-10 Thread Jim Steil
Hi I just updated my web2py from trunk today and noticed that the columns arg in SQLFORM.grid is gone. I was using it to specify which fields to display in my grid. Can the 'fields' arg be used the same as columns? -Jim

[web2py] Re: html from text

2011-11-10 Thread peter
I am a bit bemused, surely the reason for using ckeditor is to have wysiwyg editing. Yet I have tried both the slices version and the the plugin of ckeditor and they both just seem to allow editing but with no toolbar for emboldening etc. I woudl have thought the defualt ought to include this. I

[web2py] Re: SQLFORM.grid - columns arg is gone

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 10:17:20 AM UTC-5, Jim S wrote: Can the 'fields' arg be used the same as columns? Based on the comments in the new code, looks like that is the intention.

[web2py] Re: SQLFORM.grid - columns arg is gone

2011-11-10 Thread Cliff
It does not work that way in 1.99.2. On Nov 10, 10:17 am, Jim Steil j...@qlf.com wrote: Hi I just updated my web2py from trunk today and noticed that the columns arg in SQLFORM.grid is gone.  I was using it to specify which fields to display in my grid.  Can the 'fields' arg be used the same

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
Hello Anthony, Are they flowing by the function where the SQLFORM.grid is calling or do I have to modify the grid class into sqlhtml.py? I naively try this that didn't work : def test_sqlformgrid(): table = SQLFORM.grid(db.TABLE, ui='jquery-ui', editable=auth.has_membership('reviewer'),

[web2py] Re: html from text

2011-11-10 Thread Anthony
I did it like this (using the jQuery adapter to start CKEditor): script type=text/javascript $(function() { var toolbar = [ { name: 'document',items : [ 'Source' ] }, { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },

Re: [web2py] SQLFORM.grid - columns arg is gone

2011-11-10 Thread Jim Steil
Here is the change I made in my code to accommodate: Old code: columns=['assetType.name'] New code: fields=[db.assetType.name] Other than that, seems like they work the same. Can anyone provide a deeper explanation of the differences? -Jim On 11/10/2011 9:17 AM, Jim Steil wrote:

Re: [web2py] Offline Access to web2py manual?

2011-11-10 Thread ~redShadow~
On Thu, 2011-11-10 at 04:03 -0800, Anthony wrote: On Thursday, November 10, 2011 6:58:44 AM UTC-5, Samuele Santi wrote: Why are always the more useful things undocumented?? This is not any kind of official web2py method -- it's a general method available in Linux for copying

[web2py] Re: The -f command line switch seems to break custom_import

2011-11-10 Thread pgergo
Fix, in case anyone interested: --- a/custom_import.py 2011-10-01 12:03:20.0 +0200 +++ b/custom_import.py 2011-11-10 16:22:29.466847323 +0100 @@ -11,7 +11,7 @@ def custom_import_install(web2py_path): global _web2py_importer global _web2py_path -if

[web2py] SQLFORM.smartgrid | linked_tables with

2011-11-10 Thread olivier
Hi here! I am experimenting with the smartgrid. Very nice time-saving feature which reminds me why I love web2py! ;-) (I believe there is still no doc about grid and/or smartgrid?) I have a problem with linked_tables. The model looks like this: db.define_table('person',Field('name'))

[web2py] Re: CAS auto login for all apps

2011-11-10 Thread pepper_bg
I still need to click login button right now. Just add @auth.login_required on top of the controller functions you want to auto login from in the consumers and if you are logged in at the CAS provider you will get logged in here as well (I believe this what you are describing you want to do now

[web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread annet
Hi Richard, This thread: http://groups.google.com/group/web2py/browse_thread/thread/ce28ccceb29a459/e2d7471f2894b177 ... provide two solutions to reduce memory usage. Kind regards, Annet.

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Workin in console : In [1]: test123 = 'test/test2/test3/' In [2]: test123 Out[2]: 'test/test2/test3/' In [3]: for v in test123.split('/'): ...: if v != '': ...: v ...: ...: Out[3]: 'test' Out[3]: 'test2' Out[3]: 'test3' In [4]: XML(UL(*[ LI(v) for v in

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Hello Anthony, I am trying to do something bizzard... I would like to have your advice if it's even possible : represent=lambda value, row: (value!=None and XML(UL(*[ LI(v) for v in value.split('/') if v != '' ]))) or 'None' I would like the default navigator drop box to display html stuff is

[web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread BrendanC
I had the same problem with webfaction - be sure to set your static files to be delivered by ngenix or apache. I followed the info in the link above and it reduced my memory usage However I have both a Django and a Web2py instance set up on my account and Web2py takes more memory for my a

[web2py] SQLFORM.smartgrid - multiple problems with latest trunk

2011-11-10 Thread Jim Steil
Hi I've been using SQLFORM.smartgrid for some time now. I updated to the latest trunk this morning and am now having a number of different issues with code unchanged from yesterday. Are there changes pending and I should hold off reporting problems, or should I start going through them?

Re: [web2py] Re: Online Book Typo

2011-11-10 Thread mikech
So can we assume that the typos we see there now, have not been reported?

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
I don't understand -- where is that ul supposed to go? What field are your representing? What is the default navigator drop box? On Thursday, November 10, 2011 12:03:27 PM UTC-5, Richard wrote: Workin in console : In [1]: test123 = 'test/test2/test3/' In [2]: test123 Out[2]:

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 10:52:42 AM UTC-5, Richard wrote: def test_sqlformgrid(): table = SQLFORM.grid(db.TABLE, ui='jquery-ui', editable=auth.has_membership('reviewer'), deletable=auth.has_membership('reviewer'), formstyle = 'divs') for i in

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 12:25:09 PM UTC-5, Anthony wrote: When you first call this function, there will be no form.create_form because it's just generating the grid. When you click on the Add button, it should call this same function, but with new as one of the URL args. So, I

[web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Cliff
Got a little embarrassment here. In an earlier post I wrote something incorrect, as follows: # even more # for those times when the grid default form isn't sufficient form = SQLFORM(db.sometable, .) if form.accepts(...) #old method, I know yada yada return

[web2py] Re: Apostrophe error in the database

2011-11-10 Thread Massimo Di Pierro
Yes but there is nothing wrong with that. Your page is in unicode and that is the right way to represent the apostrophe un unicode. Does it show an postrophe when you look at it? On Nov 10, 9:04 am, eric tchonfene erictchonf...@gmail.com wrote: This the result I get when I call the function

[web2py] Re: Python 2.7 on GAE (experimental)

2011-11-10 Thread pallav
web2py is normally multithreaded when running as a WSGI app (as with its internal Rocket server, or Apache mod_wsgi). GAE is just catching up. One GAE consideration, though, is that while normally requests within the same web2py session are serialized, that is not the case on GAE. Thanks

[web2py] Re: Online Book Typo

2011-11-10 Thread Massimo Di Pierro
Lots of typos have been fixed. Will post a book ed 3.3 shortly On Nov 10, 11:19 am, mikech mp.ch...@gmail.com wrote: So can we assume that the typos we see there now, have not been reported?

[web2py] Re: SQLFORM.smartgrid - multiple problems with latest trunk

2011-11-10 Thread Massimo Di Pierro
please repost problems asap about it. I have made some backward incompatible changes to the grid/smartgrid in order to clean up the API and updating the book. the columns argument is gone because it was redundant. we have fields. I have added some params. On Nov 10, 11:16 am, Jim Steil

Re: [web2py] Re: SQLFORM.smartgrid - multiple problems with latest trunk

2011-11-10 Thread Jim Steil
Working up some test cases now and will submit tickets. -Jim On 11/10/2011 11:33 AM, Massimo Di Pierro wrote: please repost problems asap about it. I have made some backward incompatible changes to the grid/smartgrid in order to clean up the API and updating the book. the columns argument

[web2py] Re: GAE Python 2.7

2011-11-10 Thread pallav
Thank you. Am testing it out now. On Nov 3, 8:48 pm, Jonathan Lundell jlund...@pobox.com wrote: There's now a new version of app.example.yaml in the trunk. If you're working with the Google App Engine, read on. GAEhas been evolving a bit, and now supports Python 2.7 (vs 2.5). The new

Re: [web2py] Re: Python 2.7 on GAE (experimental)

2011-11-10 Thread Jonathan Lundell
On Nov 10, 2011, at 9:32 AM, pallav wrote: web2py is normally multithreaded when running as a WSGI app (as with its internal Rocket server, or Apache mod_wsgi). GAE is just catching up. One GAE consideration, though, is that while normally requests within the same web2py session are

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
On Thu, Nov 10, 2011 at 12:26 PM, Anthony abasta...@gmail.com wrote: On Thursday, November 10, 2011 12:25:09 PM UTC-5, Anthony wrote: When you first call this function, there will be no form.create_form because it's just generating the grid. When you click on the Add button, it should call

Re: [web2py] Re: GAE Python 2.7

2011-11-10 Thread Jonathan Lundell
On Nov 10, 2011, at 9:40 AM, pallav wrote: Thank you. Am testing it out now. On Nov 3, 8:48 pm, Jonathan Lundell jlund...@pobox.com wrote: There's now a new version of app.example.yaml in the trunk. If you're working with the Google App Engine, read on. GAEhas been evolving a bit, and

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread eric tchonfene
When I look at the data in the database it shows up just fine (Lady's room) the error only happens when I am trying to view data as xml I get Lady#x27;sRoom.As I said I am new to web2py so I need to do some reading to understand the tool. On Thu, Nov 10, 2011 at 11:29 AM, Massimo Di Pierro

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
I have a dropdown, I use to represent the id of the linked table with the reprensent I wrote... Now the dropdown witdh get pretty large because of user data that I need to concatenate to make thing clear on what will be selected... User use to duplicate the unique key of the foreight table since

[web2py] Re: Active Directory Authentication and Apache

2011-11-10 Thread Akabander
Responding to my own post... I found the problem by using tethereal to capture the exchange between my server and the Active Directory server. I was under the mistaken impression that because the web2py LDAP authentication does not require binding information that the AD server had been

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
When you say dropdown, is it a select element, or some kind of JS or CSS menu based on a ul? On Thursday, November 10, 2011 12:55:57 PM UTC-5, Richard wrote: I have a dropdown, I use to represent the id of the linked table with the reprensent I wrote... Now the dropdown witdh get pretty

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 12:42:49 PM UTC-5, Richard wrote: if 'new' in request.args: works (allow to load the grid) but the if form.create_form: not work alone or in conjunction with the former Yeah, looks like it would have to be something like if hasattr(form, 'create_form'):.

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 12:42:42 PM UTC-5, africanacloud wrote: When I look at the data in the database it shows up just fine (Lady's room) the error only happens when I am trying to view data as xml I get Lady#x27;sRoom.As I said I am new to web2py so I need to do some reading to

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Yes! Richard On Thu, Nov 10, 2011 at 1:20 PM, Anthony abasta...@gmail.com wrote: When you say dropdown, is it a select element, or some kind of JS or CSS menu based on a ul? On Thursday, November 10, 2011 12:55:57 PM UTC-5, Richard wrote: I have a dropdown, I use to represent the id of

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 1:31:04 PM UTC-5, Richard wrote: Yes! It was an either/or question. Is it a select or a ul based menu?

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread eric tchonfene
The XML is being parsed by a Flashbuilder app and yes the apostrophe showing up that way is causing a problem. On Thu, Nov 10, 2011 at 12:28 PM, Anthony abasta...@gmail.com wrote: On Thursday, November 10, 2011 12:42:42 PM UTC-5, africanacloud wrote: When I look at the data in the database

[web2py] smartgrid styling

2011-11-10 Thread Cliff
Am I missing something? Running 1.99.2 smartgrid works but definitely needs styling. I see the styling for web2py grid in base css and grid looks fine. Smartgrid not so much.

[web2py] cool css3 hover effects

2011-11-10 Thread Massimo Di Pierro
http://tympanus.net/Tutorials/OriginalHoverEffects/index.html

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 1:39:01 PM UTC-5, africanacloud wrote: The XML is being parsed by a Flashbuilder app and yes the apostrophe showing up that way is causing a problem. Is JSON an option? I don't think the JSON serializer does any escaping. Anthony

[web2py] Re: Apostrophe error in the database

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 12:29:58 PM UTC-5, Massimo Di Pierro wrote: Yes but there is nothing wrong with that. Your page is in unicode and that is the right way to represent the apostrophe un unicode. Does it show an postrophe when you look at it? Massimo, he's generating XML to be

[web2py] Re: Apostrophe error in the database

2011-11-10 Thread Massimo Di Pierro
Technically the flashbuilder service is wrong because it does not understand unicode escaping. Anyway, I changed the behavior for XML. Check trunk. On Nov 10, 12:39 pm, eric tchonfene erictchonf...@gmail.com wrote: The XML is being parsed by a Flashbuilder  app and  yes the apostrophe showing

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Ok I think you were asking if it were the select html menu... Select menu and I want option to display differently... I should not used the ul li helper... I just copied this lambda from somewhere else in my code to try something and ul li seems to cause confusion in this context. I want to have

Re: [web2py] cool css3 hover effects

2011-11-10 Thread Richard Vézina
Pretty nice... Thanks Richard On Thu, Nov 10, 2011 at 1:57 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: http://tympanus.net/Tutorials/OriginalHoverEffects/index.html

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Need something like this : http://www.web2ajax.fr/2008/02/03/facebook-like-jquery-and-autosuggest-search-engine/ Richard On Thu, Nov 10, 2011 at 2:06 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Ok I think you were asking if it were the select html menu... Select menu and I want

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
I don't think values inside option tags can include additional HTML markup. Anthony On Thursday, November 10, 2011 2:06:22 PM UTC-5, Richard wrote: Ok I think you were asking if it were the select html menu... Select menu and I want option to display differently... I should not used the

Re: [web2py] smartgrid styling

2011-11-10 Thread Jim Steil
Have you started a brand new app and used it, or added it to an an older app? There were a number of css changes/additions at some point. -Jim On 11/10/2011 12:45 PM, Cliff wrote: Am I missing something? Running 1.99.2 smartgrid works but definitely needs styling. I see the styling for

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Yeah I can take this awful shortcut :( Thanks Anthony. Richard On Thu, Nov 10, 2011 at 2:27 PM, Anthony abasta...@gmail.com wrote: I don't think values inside option tags can include additional HTML markup. Anthony On Thursday, November 10, 2011 2:06:22 PM UTC-5, Richard wrote: Ok I

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Mean can't... On Thu, Nov 10, 2011 at 2:32 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Yeah I can take this awful shortcut :( Thanks Anthony. Richard On Thu, Nov 10, 2011 at 2:27 PM, Anthony abasta...@gmail.com wrote: I don't think values inside option tags can include

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
It was working if form.create_form:... I thought that grid use form variable doesn't matter if the SQLFORM.grid wasn't in a form variable at all... And my bad because I show form = crud... But it was not my SQLFORM.grid... Arrg. Sorry about that... Richard On Thu, Nov 10, 2011 at 1:26 PM,

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
Here a working piece of code : def test_sqlformgrid(): form = SQLFORM.grid(db.TABLE, ui='jquery-ui', editable=auth.has_membership('reviewer'), deletable=auth.has_membership('reviewer'), formstyle = 'divs') if 'new' in request.args: if form.create_form for i in

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
If you have if 'new' in request.args:' you should not also need if form.create_form (even if you did, you could simply put them in the same if statement with an and). Alternatively, use if hasattr(form, 'create_form'): -- all by itself. Anthony On Thursday, November 10, 2011 2:48:49 PM UTC-5,

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
Ok so this : if 'new' in request.args and form.create_form: or shorter : if hasattr(form, 'create_form'): ? Thank you. Richard On Thu, Nov 10, 2011 at 2:58 PM, Anthony abasta...@gmail.com wrote: If you have if 'new' in request.args:' you should not also need if form.create_form (even if

[web2py] crud.read vars

2011-11-10 Thread lucas
hello everyone, trying to understand why the pmsg below fails to pull the values of the form ef. all i get is None for each of the three, ef.vars.email_address, ef.vars.subject, and ef.vars.message_body. all three are spelled correctly and the full form ef, displays all of the proper

[web2py] Re: GAE - SQL cloud connection

2011-11-10 Thread pallav
Hi Massimo, I just ran into the same issue on GAE SQL. Any update/ideas since the last post? I'm happy to help code/debug/brainstorm. Thanks, Pallav On Oct 19, 10:53 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This is another of those weird mysql issues CREATE TABLE IF NOT EXISTS

[web2py] Random Selection Issue

2011-11-10 Thread Andrew Evans
Hello I am trying to randomly select from entries in my database then store that random result. The problem is its storing the wrong result (I think its storing the previous random selection) Any ideas how I can achieve my goal? @auth.requires_login() def xreflection(): game_id =

  1   2   >