[web2py] Re: SQLFORM.grid on page with custom request.vars

2018-07-18 Thread watr
I'm on the latest master in Github (2018). I am currently using the work-around below to fix the issue on all my pages, simply by putting this line in my layout.html (which all my views import): path = window.location.pathname; $(".web2py_console ").find('form').attr("action", path);

[web2py] SQLFORM.grid on page with custom request.vars

2018-07-18 Thread watr
I find SQLFORM.grid search doesn't work on a page with custom request.vars. Is there a way to fix the grid so it works? Thanks, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/li

[web2py] SQLFORM.grid Add multiple items in links

2018-06-15 Thread watr
Here is my links code: links = [ dict(header='Balance', body=lambda row: row.po.amount - row.invoice_items.amount_pretax), dict(header='Controls', body=[ lambda row: A('Invoices',_class='button btn btn-default',_href=URL('invoice', 'list', args=['commitmen

[web2py] Catch form submission and switch value of a form field

2018-06-08 Thread watr
Is it possible to catch a form submission before it is processed into the DB and switch a value in a form field? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issue

[web2py] Re: DAL with UploadFS = s3 Not working with Delete and Download

2018-06-08 Thread watr
return True else: return False On Friday, 8 June 2018 14:21:17 UTC-7, watr wrote: > > I am running web2py from source pulled from github master this morning. > > Here is my code: > from fs_s3 import S3FS > import datetime > > bucket = "pobook&quo

[web2py] DAL with UploadFS = s3 Not working with Delete and Download

2018-06-08 Thread watr
Here is my code: from fs_s3 import S3FS import datetime bucket = "pobook" region = 'ca-central-1' aws_akey = "##" aws_skey = "" myfs = S3FS( bucket, aws_access_key_id=aws_akey, aws_secret_access_key=aws_skey, regi

[web2py] Re: s3fs uploadfs error saying file name cannot be string - must be unicode

2018-06-08 Thread watr
The solution was in the code I posted originally. I had commas at the declaration of the public and private key. After removing the commas I can now upload. *Before:* bucket = "pobook", region = 'ca-central-1', aws_akey = "##", aws_skey = "" *After:* bucket =

[web2py] When will the web2py book open to all editing?

2010-05-07 Thread waTR
I was just wondering if there are plans to open the book wiki to editing to everyone (even if you don't create an account). There is no danger in doing that...there are plenty of people who will clean up any garbage...

[web2py] Re: Is GAE worth using

2010-05-06 Thread waTR
pect when they think of > > google and the one thing that they do not provide. You can do it with > > hacks but I do not believe it scales) > > 3) real transactions > > > On May 6, 11:56 am, waTR wrote: > > > > GAE is useless without being able to use MapRedu

[web2py] Re: Is GAE worth using

2010-05-06 Thread waTR
GAE is useless without being able to use MapReduce...without MapReduce you cannot do any relationships with tables of any significant size. I get this opinion from ex-googlers. On May 6, 7:47 am, mdipierro wrote: > My experience is that GAE is fine if you need to store many chunks of > data (l

[web2py] Re: web2py cheat sheet for a pyday

2010-05-04 Thread waTR
Had this from a while ago. Not sure if this is what you are looking for. http://rapidshare.com/files/383518290/web2py_cheatsheet.pdf.html On May 4, 10:33 am, mdipierro wrote: > Almost perfect. You lost a 'r' in r-espose and there is ] that takes > unnecessarily an entire line. I will replace mi

[web2py] Debuging web2py & form.custom problems with AUTH

2010-05-04 Thread waTR
I am wondering if there is a way to debut web2py apps. I would like to see what functions are being called and what data is being passed to them. I am trying to get auth to work with form.custom.widget, but everytime I submit, the widget doesn't insert the record into the database, it simply refre

[web2py] Re: Using form.custom and auth

2010-05-04 Thread waTR
, 6:26 am, waTR wrote: > Can someone point me to some examples of usage of form.custom.widget > for auth?  I am looking for example code. > > On May 3, 5:59 pm, waTR wrote: > > > Solved previous problem. However, the form won't actually insert into > > the d

[web2py] Re: Using form.custom and auth

2010-05-04 Thread waTR
Can someone point me to some examples of usage of form.custom.widget for auth? I am looking for example code. On May 3, 5:59 pm, waTR wrote: > Solved previous problem. However, the form won't actually insert into > the database...am I missing something? > > On May 3, 5:3

[web2py] Re: Using form.custom and auth

2010-05-03 Thread waTR
Solved previous problem. However, the form won't actually insert into the database...am I missing something? On May 3, 5:36 pm, waTR wrote: > Strange behaviour in view: > > I can't seem to use password_two using custom form. It doesn't show up > as a text-box. It

[web2py] Re: Using form.custom and auth

2010-05-03 Thread waTR
Strange behaviour in view: I can't seem to use password_two using custom form. It doesn't show up as a text-box. It simply shows up as the word "None". On May 3, 5:20 pm, waTR wrote: > Correction: > Instead of register["_class"] = "bla", do:

[web2py] Re: Using form.custom and auth

2010-05-03 Thread waTR
Correction: Instead of register["_class"] = "bla", do: register.element(_name='fieldNAME')['_class'] = "custom_css_classes" On May 3, 5:18 pm, waTR wrote: > The way to do it is to do the following in the controller: > > register = a

[web2py] Re: Using form.custom and auth

2010-05-03 Thread waTR
ave two forms available for me to use "{{=register.custom.widget.bla}}" with in view. On May 3, 5:07 pm, waTR wrote: > Is there any way to use form.custom.widget with AUTH.register() and > AUTH.login()  ? > > I have a design I am trying to plug my code into, and wanted t

[web2py] Using form.custom and auth

2010-05-03 Thread waTR
Is there any way to use form.custom.widget with AUTH.register() and AUTH.login() ? I have a design I am trying to plug my code into, and wanted to try not re-writing the login/register stuff this time.

[web2py] Re: web2py stats

2010-04-30 Thread waTR
great stats! Thanks for publishing this Massimo! It shows transparency in the community and allows people to see this community as a growing community. On Apr 29, 8:05 am, Mengu wrote: > this is great news. hope many of them convert not just stay with > visiting! :) > > On 29 Nisan, 17:32, m

[web2py] Re: the web2py book, source code

2010-04-12 Thread waTR
Please post a link on that page to the bitbucket/github source code location of that project. If it is not up on one of those, any plans to put it up? I really feel more web2py plugins/apps need to make use of github/bitbucket/googlecode. On Apr 11, 8:06 pm, Thadeus Burgess wrote: > Double post

[web2py] ModWSGI vs CherryPy vs others.

2010-03-16 Thread waTR
http://nichol.as/benchmark-of-python-web-servers -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. Fo

[web2py] DAL Cassandra support

2010-03-08 Thread waTR
In case there is someone working on Cassandra support for DAL, here is a great bit of code to get you started. http://github.com/ericflo/twissandra/tree/master/deps -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send ema

[web2py] Re: how to use GAE deferred

2010-03-07 Thread waTR
I too am interested in this... On Mar 7, 2:44 pm, Richard wrote: > I am adding some background work to my web2py GAE app with the > deferred library:http://code.google.com/appengine/articles/deferred.html > > As the article suggests I have added this to app.yaml: > - url: /_ah/queue/deferred >

[web2py] Re: interesting stats

2010-03-05 Thread waTR
Note that more comments doesn't equate to better code. Better code equates to code that is efficient and easily readable. If you need a long comment to explain some piece of code, consider breaking the code up into more understandable pieces. I use to think that you need a 2:1 comments:lines of co

[web2py] Anyone interested in backing up / restoring their GAE database?

2010-03-04 Thread waTR
http://web2py.uservoice.com/forums/42577-general/suggestions/525621-plugin-gaebar-on-web2py -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email

[web2py] Re: uservoice and decimal

2010-03-04 Thread waTR
That's no big deal, just mark the suggestion as DONE, and put a comment about the existence of this feature... On Mar 4, 7:29 am, DenesL wrote: > Other that pointing them in the right direction?. > > On Mar 4, 8:06 am, mdipierro wrote: > > > There is a comment on uservoice about decimal. > > >

[web2py] Re: uservoice problems

2010-03-03 Thread waTR
What browser are you using? I am on firefox using a local account I made with them, and it works fine...I just commented on the routes.py for each app suggestion... On Mar 3, 7:13 pm, mdipierro wrote: > I am having lots of problems with uservoice. I am trying to comment > since some of the thi

[web2py] Re: * web2py's Brand *

2010-03-03 Thread waTR
I tend to agree with what has been mentioned in the past. Concentrate on building good web apps and websites using web2py. Let the work speak for itself. All we need is one or two big successes... On Mar 3, 7:02 pm, mdipierro wrote: > On Mar 3, 7:23 pm, John Heenan wrote: > > > On Mar 4, 2:17

[web2py] Re: Web2py Scalability and demos

2010-02-27 Thread waTR
If you want to ensure your site works flawlesly and can scale, build it to work on the cloud. Check out this video for interesting info about what to watch out for: http://pycon.blip.tv/file/3257303/ http://us.pycon.org/2010/conference/schedule/event/148/ There is also this: http://pycon.blip.tv/f

[web2py] Re: Uservoice: web2py forum

2010-02-26 Thread waTR
Can we get a link to the web2py uservoice forum on the web2py main page? http://web2py.uservoice.com On Feb 25, 9:32 am, waTR wrote: > The idea of uservoice is not simply a list of feature requests, but > also a measure of popularity or demand. The forum isn't a good list of > fea

[web2py] Re: Uservoice: web2py forum

2010-02-25 Thread waTR
sting in the user community. On Feb 23, 4:56 pm, Richard wrote: > works well - I used it previously via Elance. > Though people can already request features via this forum or Google > Code (http://code.google.com/p/web2py/issues/list) > > On Feb 24, 9:08 am, waTR wrote: > >

[web2py] Uservoice: web2py forum

2010-02-23 Thread waTR
I was just wondering if Massimo is interested in creating a UserVoice account & forum for web2py. It's free, and it is really nice to have. At least people will have a place to request features... It's also a really nice interface. Here is an example: http://freenet.uservoice.com/forums/8861-gener

[web2py] Re: Difficulty with a form

2010-02-20 Thread waTR
There is no link to them anywhere though. I found it only through google searching. It needs to be added in the book website under Other resources. On Feb 19, 3:20 am, selecta wrote: > > Also, I couldn't find a link to the epydocs ?  Where did that go?  It > > was really great! > > underhttp:

[web2py] Re: Any way to close a window from the controller?

2010-02-19 Thread waTR
at with this javascript command, the security settings on most > browsers will prompt the user with "Do you want to close this window?" > > On Feb 20, 12:52 pm, waTR wrote: > > > I have a window that was opened by a link. I have it go to a > > controller, but onc

[web2py] Any way to close a window from the controller?

2010-02-19 Thread waTR
I have a window that was opened by a link. I have it go to a controller, but once I am finished, I would like to close the window. Is this possible to do from the controller via a URL() or something? -- You received this message because you are subscribed to the Google Groups "web2py-users" grou

[web2py] Re: Difficulty with a form

2010-02-18 Thread waTR
the company_id into the request.vars as it is returned from view on submit. ...help... On Feb 18, 8:47 pm, Jonathan Lundell wrote: > On Feb 18, 2010, at 8:25 PM, waTR wrote: > > > The only work-around I found was to mark all the required info as > > hidden html, and so it no

[web2py] Re: Difficulty with a form

2010-02-18 Thread waTR
want some of the data to stay private. On Feb 18, 3:56 pm, waTR wrote: > Also, I couldn't find a link to the epydocs ?  Where did that go?  It > was really great! > > On Feb 18, 3:49 pm, waTR wrote: > > > I have created a form using SQLForm. I am using a db query

[web2py] Re: Difficulty with a form

2010-02-18 Thread waTR
Also, I couldn't find a link to the epydocs ? Where did that go? It was really great! On Feb 18, 3:49 pm, waTR wrote: > I have created a form using SQLForm. I am using a db query to select a > single row from a db table, and I want to make changes to it. However, > when I submi

[web2py] Difficulty with a form

2010-02-18 Thread waTR
I have created a form using SQLForm. I am using a db query to select a single row from a db table, and I want to make changes to it. However, when I submit, some of the data disapears in the submit. This happens to also prevent the form from submitting as that data that disapears is very important.

[web2py] Re: web2py with alchemy

2010-02-13 Thread waTR
I believe the DAL is originally just another layer on top of SQLAlchemy. So I would think you could use it extremely easily. Check the code in the dal python file and see how they imported the SQLAlchemy library and simply copy and paste that. I think that should work. On Feb 13, 8:44 am, vihan

[web2py] Re: web2py blog screencast

2010-01-24 Thread waTR
The screencast mentioned in this thread should be added to a list of "Read/watch first if your new" on the user group, and make it a sticky. On Jan 24, 10:41 pm, Mengu wrote: > i see many new people coming to the group and asking the same > questions. please at least watch the screencast on thi

[web2py] Re: Request/Idea

2010-01-20 Thread waTR
+1 On Jan 19, 5:08 am, mdipierro wrote: > +1 > > On Jan 18, 11:00 pm, Anand Vaidya wrote: > > > +1 > > > Excellent feature to possess. > > > -Anand > > > On Jan 19, 12:16 pm, Jason Brower wrote: > > > > I think it would be nifty to have an interface (app store?) to install > > > and remove pl

[web2py] Re: jQuery 1.4 out

2010-01-15 Thread waTR
I much prefer YUI 3 over Jquery 1.4... YUI 3 is not only smaller (7k + plugins you choose to use), but it is also a tighter package, and has a great set of features (CUSTOME EVENTS!!). Congrats to the jQuery team non-the-less, the world still needs jQuery. On Jan 15, 6:16 am, mdipierro wrote:

[web2py] Re: CRYPT() hmac.new and determining length of password

2010-01-11 Thread waTR
Is it possible to intercept form submission data before the SQLFORM form factory applies the "requires=" functions, in order to play with the data? On Jan 11, 4:33 pm, waTR wrote: > problem solved by looking in manual under DAL. > > did following: > test = db(qu

[web2py] Re: CRYPT() hmac.new and determining length of password

2010-01-11 Thread waTR
problem solved by looking in manual under DAL. did following: test = db(query).select() test[0].update_record(password=newpass) original problem was to do with pass auth, not db update (db was updating fine with previous code). On Jan 11, 4:07 pm, waTR wrote: > followup problem is for s

[web2py] Re: CRYPT() hmac.new and determining length of password

2010-01-11 Thread waTR
this case IS_LENGTH checks the length of the password before it is > crypted (validators are filters and they are executed in order). > > You may also want to look into IS_STRONG as an alternative to > IS_LENGTH > > On Jan 11, 5:01 pm, waTR wrote: > > > I have a form mad

[web2py] CRYPT() hmac.new and determining length of password

2010-01-11 Thread waTR
I have a form made with form factory and SQLForm that has 2 password fields set to CRYPT(). When the form is submitted I need to check the length of the password entered (the string). However, the password is hashed, and so I am not sure how to check the length of the actual password string. -- Y

[web2py] Re: django and web2py

2010-01-09 Thread waTR
I agree that the documentation is lacking, especially for the newest features. Though, IMHO, documentation is ALWAYS a problem for developers. I am sure when this framework is popular enough there will be some people who will take that task on. For now I use the code, as it is quite readable, and I

[web2py:38199] Re: Scalability of Web2py

2010-01-02 Thread waTR
I agree. The bottleneck would likely be the DB, not web2py or Django or any other framework/language. Therefore, the key here is to use caching and smart db design (plus some ajax to break big DB load tasks down to smaller ones). On Jan 1, 6:27 pm, mdipierro wrote: > It really depends on what "

[web2py:37396] Re: web2py blog screencast

2009-12-16 Thread waTR
Great job Mengu! This has been long overdue! The SQLForm / factory / custome functionality is some of the most EXCELLENT parts of web2py, yet there is barely any documentation about the full functionality of them. Knowing how to use those things makes templating a webapp SO MUCH EASIER and FASTE

[web2py:37395] Re: Form element definition & examples

2009-12-16 Thread waTR
hrough the form components looking for match(es) > > > form.element('input',_type='text')# grabs the first text input > > form.elements('input',_type='text')# grabs all text inputs > > > form.elements('input','textarea')

[web2py:37256] Form element definition & examples

2009-12-15 Thread waTR
Is there a definition of all possible arguments for form.element and some examples somewhere? I am mainly looking to use it with SQLForm and factory(). Specifically, I want to create a form with SQLForm & factory, and then modify some of the elements to be things other than text boxes, i.e. to cha

[web2py:36474] Re: web2py users growth

2009-12-03 Thread waTR
Agree re: code commenting. When I did my little bit of work with SQLHtml, it had almost no comments that describe the intent of the code. This made it much harder to figure out what affects what. This resulted in a lot of unnecessary unintended results in my code that I only found through the testi

[web2py:36373] Re: web2py users growth

2009-12-02 Thread waTR
I think a more valid statistic is # of postings/ month. I would argue an inactive user is not necessarily a good thing. Not to throw water on the great news or anything. It is still a positive indicator that the user numbers are growing. Go web2py!! On Dec 2, 3:58 pm, mdipierro wrote: > yes. >

[web2py:36151] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread waTR
Patch sent. I will post a web2pyslice tutorial tomorrow. On Nov 28, 9:21 pm, waTR wrote: > Nevermind, I got it. I was mixing up things at the function call not > in the arguments. > > On Nov 28, 8:57 pm, waTR wrote: > > > So any chance a patch will be made? > > &

[web2py:36148] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread waTR
Nevermind, I got it. I was mixing up things at the function call not in the arguments. On Nov 28, 8:57 pm, waTR wrote: > So any chance a patch will be made? > > I have been trying to make the modification myself, however, I am > coming from C++ so I am not yet used to the a

[web2py:36145] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread waTR
ot; before **attributes. However, when I do a type(stylized), it keeps telling me it is a gluon.sql.Field type... I think I am trying to use static typing and python keeps kicking my butt for it;) On Nov 28, 8:06 pm, mdipierro wrote: > This makes a good point. > > On Nov 28, 2

[web2py:36125] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread waTR
> They are very simple, they basically just have an INPUT so you can do > > > form['_class']='myclass' > > > .myclass INPUT#name { > >   ... style of the INPUT in the widget name in form... > > } > > > There is nothing you cannot already

[web2py:36110] Re: SQLForm (set custom css classes to specified elements)

2009-11-27 Thread waTR
ea. It is not necessary for the purpose > > of customization > >  Moreover you can do it with jQuery > > > jQuery('#table_password').addCladd('custom_1'); > > > On Nov 27, 6:55 pm, waTR wrote: > > > I am wondering if anyone is working on

[web2py:36100] SQLForm (set custom css classes to specified elements)

2009-11-27 Thread waTR
I am wondering if anyone is working on adding a capability to set a class for a single element in an SQLForm.custom.widget out of however many are passed to it from a db.table. I.e. You have a table named USER with Name, Email, Password. Set Name to class = "password OR string OR whatever is defa

[web2py:36097] Re: Looking to use form.custom with existing table and new data boxes

2009-11-27 Thread waTR
Is there any plan to allow people to modify individual classes of individual elements in the future? ie. {{=form.custom.widget.notes(style_class="txtarea large")}} Would be really nice to have access to individual elements' style on an as needed basis. On Nov 27, 4:14 pm, waTR

[web2py:36096] Re: Looking to use form.custom with existing table and new data boxes

2009-11-27 Thread waTR
that's perfect! thank you T & M! On Nov 27, 3:56 pm, mdipierro wrote: > Not for each element (not without using jquery) but you can change the > class for the form > > form['_class']= > > and than use that to style the content. > > On Nov 27, 5:

[web2py:36090] Re: Looking to use form.custom with existing table and new data boxes

2009-11-27 Thread waTR
t; {{=form.custom.widget.lname}} > > {{=form.custom.widget.email}} > > . etc etc > > {{=form.custom.end}} > > -Thadeus > > On Fri, Nov 27, 2009 at 4:58 PM, waTR wrote: > >  need to be able to insert my own custom fields and do > > validation on those

[web2py:36087] Looking to use form.custom with existing table and new data boxes

2009-11-27 Thread waTR
I am looking to create a user preferences + change password page. Summary: The page will list the user details i.e. name, email, etc. in input boxes (pre-filled with the info from the db). I want to be able to select which fields it decides to show, however, I don't want it to just spit out the wh

[web2py:36082] Re: Customizing HTML output of forms

2009-11-27 Thread waTR
Is it possible to manually set the class of the form so as to make it easier to customize with CSS? I can't see anything like that in any documentation. On Nov 27, 7:12 am, Thadeus Burgess wrote: > custom form!!! FTW > > http://web2py.com/AlterEgo/default/show/205 > > I have that link memoriz

[web2py:36079] Re: auth custome login not working

2009-11-27 Thread waTR
SOLUTION: change sha512 -> md5. Not sure how or why it got set to sha512... Has CRYPT() been changed from SHA512 to md5 recently? REVISED CODE: passwd = hmac.new(auth.settings.hmac_key, request.get_vars.password, hashlib.md5).hexdigest() On Nov 27, 10:33 am, waTR wrote: > I am try

[web2py:36078] auth custome login not working

2009-11-27 Thread waTR
I am trying to get a custome login to work with auth. Here is my code: auth.settings.hmac_key='9562af3a-c7f5-4582-8322-b0efa4fe307b' SQLField("password", 'password', readable=False, label='Password', requires=CRYPT(key=auth.settings.hmac_key)), passwd = hmac.new(auth.settings.hmac_key, request.get_

[web2py:35876] Re: Maximum No of users can web2py server can support

2009-11-23 Thread waTR
Someone needs to do a wiki entry for HIGH PERFORMANCE web2py setup. I.e. Apache + WSGI + Postgre/MySQL + Query Cache code + Page Cache code. A simple program that could be made for this is an app for allowing students to register for classes. Requirements: Super user can: add classes, change clas

[web2py:35858] Re: Maximum No of users can web2py server can support

2009-11-23 Thread waTR
This is farily simple. No big deal. DAL can be switched to PostgreSQL without having to do anything other than change the line at the top of the db.py file in MODEL. This sounds like a school course registration system. Definetly use the APACHE + WSGI. Also, use caching as much as possible for y

[web2py:35775] Re: Wiki that uses web2py framework?

2009-11-21 Thread waTR
Yes. The Web2py wiki is made using web2py... On Nov 21, 9:38 am, rjeffries wrote: > I am reviewing available wikis for (initially) my personal use, but > hope to > then go on to something that's more widely available. > > Prefer that wiki be based on Python (although vast majority use PHP) > >

[web2py:35159] Re: Python + C++ = Go

2009-11-11 Thread waTR
Check out the video to find out why they did a new language rather than a library for . It is actually a very interesting development in the world of programming languages because it is the the first SYSTEM PROGRAMMING language to be released in a very long time. It also seems to build on a lot o

[web2py:34601] Re: new slices: jQueryUI slider and datepicker widgets

2009-11-04 Thread waTR
Mr. Freeze, you need to go to http://www.fortiguard.com/webfiltering/webfiltering.html and search up your domain. It is classified as Malware by them, and you need to enter your contact info to undo that. On Nov 4, 7:26 am, "mr.freeze" wrote: > >>The pain with the pingoworks autocomplete is >

[web2py:33319] Re: Creating A Button in Web2Py

2009-10-21 Thread waTR
I simply use javascript for a button. In my code, I put a on-click="javascript to open link to {{=URL()}}" On Oct 20, 9:59 pm, mdipierro wrote: > 3) URL builds the url to the action /app/controller/function, > request.application is the name of the current application so that the > link does

[web2py:31670] Re: Auth customization

2009-09-25 Thread waTR
, 12:46 pm, Jonathan Lundell wrote: > On Sep 21, 2009, at 11:22 AM, waTR wrote: > > > > > > > @Fran: Thanks!  That is exactly what I needed to see. > > > @Jonathan: > > > Yeah, but FORM isn't the most comfortable thing for a webdesigner to > > use

[web2py:31666] Re: Formating forms manually

2009-09-25 Thread waTR
ff fields that aren't being used but that have > requires validators. Do this in the controller by >   db.table1.field1.readable=db.table1.field1.writable=False > > You also will have to manually insert into the db in the accepts > clause with a statement like this: >   db.t

[web2py:31638] Re: Formating forms manually

2009-09-24 Thread waTR
See this post: http://groups.google.com/group/web2py/browse_thread/thread/2f2d117574b3bd2e# On Sep 24, 4:41 pm, BG wrote: > Hello, > > I am new to web2py and am in process of implementing a form.  I would > like to be able to format the form layout manually in the view.  Is > there a way to

[web2py:31529] Re: SQLFORM factory

2009-09-23 Thread waTR
Alternitively, if you really want to be crazy, you could do it just like in PHP: http://pastebin.com/d5b147192 In controller, you can get the values you submitted using either request.vars.get('fieldname', '') OR request.get_vars. If you use 'post' method, replace 'get' with 'post'. Easy eh? Get

[web2py:31527] Re: FORM object

2009-09-23 Thread waTR
I also like to keep the cheet sheet open while I work. IT is a great QUICK reference, when the searching the Manual takes too long for simply the names of things. http://www.web2py.com/examples/static/web2py_cheatsheet.pdf For custome HTML forms check the Manual page 194 (SQLFORM in HTML). http:/

[web2py:31499] Re: FORM object

2009-09-22 Thread waTR
Easier, and far more useful way is to use epydocs. http://www.web2py.com/examples/static/epydoc/index.html I have epydoc open all the time while I am working with web2py. It is an incredibly useful resource. Though, it would be FAR more useful, if web2py had better code commenting. My rule for go

[web2py:31415] Re: Auth customization

2009-09-21 Thread waTR
On Sep 21, 8:06 am, Jonathan Lundell wrote: > On Sep 21, 2009, at 12:02 AM, Fran wrote: > > > On Sep 21, 5:13 am, waTR wrote: > >> Is it possible to convert the request.vars.get(passfied, '') to the > >> same hash form as you would get fr

[web2py:31389] Re: Auth customization

2009-09-20 Thread waTR
ashed value post validation > > Massimo > > On Sep 20, 2:42 pm, Jonathan Lundell wrote: > > > On Sep 20, 2009, at 12:34 PM, waTR wrote: > > > > @Jonathan: > > > I looked at that code a lot yesterday, before I posted. The thing is, > > > that code doe

[web2py:31375] Re: Auth customization

2009-09-20 Thread waTR
wrote: > On Sep 18, 2009, at 4:44 PM, waTR wrote: > > > > > I need to be able to compare another password submitted against the > > one in that field. How would I go about doing that? What functions are > > available in web2py for this. > > > db.defin

[web2py:31290] Re: Auth customization

2009-09-18 Thread waTR
7;, requires=CRYPT())) I.e. I have just submitted a form that contains a request.get_vars.password how do I compare that password against the one in db. On Sep 18, 1:34 pm, Jonathan Lundell wrote: > On Sep 18, 2009, at 1:06 PM, waTR wrote: > > > Related question though... how ca

[web2py:31280] Re: Auth customization

2009-09-18 Thread waTR
}    # This is really important > > > > So basically you can customize as you want in the front-end and also > in the controller > I hope this help... Please let us know with a specific example of what > you are trying to do if you this doesn't help you... >

[web2py:31273] Auth customization

2009-09-18 Thread waTR
I am looking to make use of Auth's facilities but implement my own registration form. How would one go about creating a completely custome registration form while making use of Auth? I am unable to find any documentation on that (not in manual). --~--~-~--~~~---~--~---

[web2py:30840] Re: I am writing an app requiring user priviliges and need some ideas

2009-09-12 Thread waTR
y well. Then again, I haven't > used it extensively yet. But I'm about to and I feel the doc was clear > enough. > > On Sep 11, 9:38 pm, waTR wrote: > > > I am just wondering if anyone out there has any good case-studies or > > articles that gave them a b

[web2py:30784] I am writing an app requiring user priviliges and need some ideas

2009-09-11 Thread waTR
I am just wondering if anyone out there has any good case-studies or articles that gave them a better understanding of how to organize user permissions and access controls. I am in process of writing an app that implements some extensive user permissions. I.e. be able to set permissions to view c

[web2py:30782] Re: IS_EMAIL or IS_NULL

2009-09-11 Thread waTR
Yep, that did it. Thanks! On Sep 11, 3:17 pm, "mr.freeze" wrote: > Try requires=IS_NULL_OR(IS_EMAIL()) > > On Sep 11, 4:59 pm, b00m_chef wrote: > > > Is there a way make sure a table field that has requires = IS_EMAIL > > doesn't prevent form from being submitted if the field is left blank? --

[web2py:30062] Re: model not updating when called by SQLForm

2009-09-04 Thread waTR
ahh ok. Is that mentioned somewhere in the manual? just wondering. On Sep 4, 1:17 pm, mdipierro wrote: > turns out string, double, date, datetime and time all have default > validators. > > On Sep 4, 3:11 pm, waTR wrote: > > > What was throwing me off was that one of th

[web2py:30059] Re: model not updating when called by SQLForm

2009-09-04 Thread waTR
What was throwing me off was that one of the fields (type DOUBLE), doesn't allow user to leave it blank. So SQLForm prevents continuation until you enter some value for the DOUBLE field. Even though it has no validators attached to it nor does it have notnull=True. That really threw me off... is t

[web2py:30051] Re: Very new to web2py. Any pointers for begineers??

2009-09-04 Thread waTR
As a recent beginner myself. The best thing I can recommend in order to learn how to use the framework is just sit down and start coding. Look through the Documentation page, specifically the interactive examples page, look at the Cheat Sheet (and have it open as you code), and look the the presen

[web2py:29902] Re: YAL - yet another logo

2009-09-02 Thread waTR
It might be an idea to declare a date some time in the future when there will be a contest for a new logo--think OpenBSD. Maybe the users could rather concentrate on coming up with a good maskot for the project. What fish/mamal reflects web2py best? Tuna? http://img.alibaba.com/photo/101570896/Tu

[web2py:29904] Re: YAL - yet another logo

2009-09-02 Thread waTR
Any animal can be maskot! Here is one for Massimo: http://www.bigdealart.com/images/ThumbFiles/skunkwork.jpg On Sep 2, 12:32 pm, waTR wrote: > It might be an idea to declare a date some time in the future when > there will be a contest for a new logo--think OpenBSD. Maybe the users &

[web2py:29885] Re: the book 2nd ed. - is there any option but lulu?

2009-09-02 Thread waTR
You can view the free copy under Documentation on the main-site. On Sep 2, 9:15 am, David Watson wrote: > Hi, > > I tried to buy the book this morning on lulu. What a nightmare. > Started in safari 4.03 on OS X, couldn't get logged in or registered, > generally came back with blank pages. Trie

[web2py:29738] Re: web2py book, 2nd Ed

2009-08-31 Thread waTR
Just contact Reddit and see whats up. It may be a simple misunderstanding resulting from a few crazies contacting Reddit and complaining about web2py, saying it is spem or something. On Aug 31, 12:45 pm, "mr.freeze" wrote: > Sorry about the double post.  google groups freaked out on me so I >

[web2py:29057] Re: Web2py.com down

2009-08-20 Thread waTR
Could we know the reason for the outages? Is it the hardware? Is it the OS? Is it the webserver? Is it web2py? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email t

[web2py:28671] Re: logo

2009-08-14 Thread waTR
I like A. Lots of respect to both designers for the time they put in. On Aug 14, 12:00 pm, Yarko Tymciurak wrote: > or put another way - this can still be updated: > > since there was a majority of preference for the font of the "squared" > configuration, > would you ask the author of the wond

[web2py:28394] Re: Mobile success story

2009-08-11 Thread waTR
This needs to go on the main web-page, under success-stories! On Aug 11, 10:20 pm, mdipierro wrote: > This is great to know. Can you say which company? > > Massimo > > On Aug 11, 8:49 pm, "mr.freeze" wrote: > > > I just replaced an asp.net mileage tracker app targeting our > > Blackberry user

[web2py:28275] Re: Web2py.com down

2009-08-09 Thread waTR
Yarko Tymciurak" wrote: > > > I see - ok;  then I just didn't see an access problem from here (Chicago > > area)... > > > On Sat, Aug 8, 2009 at 6:18 PM, waTR wrote: > > > > > Sorry, when I said web2py.com... --~--~-~--~~~--

  1   2   >