[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) -

[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',

[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

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

2018-06-08 Thread watr
n 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" > region = 'ca-central-1' > aws

[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,

[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
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 mdipie...@cs.depaul.edu wrote: My experience is that GAE is fine if you need to store

[web2py] Re: Is GAE worth using

2010-05-06 Thread waTR
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 r...@devshell.org wrote: GAE is useless without being able to use MapReduce...without MapReduce you cannot do any relationships with tables

[web2py] Re: Using form.custom and auth

2010-05-04 Thread waTR
, 6:26 am, waTR r...@devshell.org 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 r...@devshell.org wrote: Solved previous problem. However, the form won't actually insert into the database...am I

[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

[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 mdipie...@cs.depaul.edu wrote: Almost perfect. You lost a 'r' in r-espose and there is ] that takes unnecessarily an entire

[web2py] Re: Using form.custom and auth

2010-05-03 Thread waTR
{{=register.custom.widget.bla}} with in view. On May 3, 5:07 pm, waTR r...@devshell.org 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 to try not re-writing the login/register stuff

[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 r...@devshell.org wrote: The way to do it is to do the following in the controller: register = auth.register() login = auth.login() Then, you can use

[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 r...@devshell.org wrote: Correction: Instead of register[_class] = bla, do: register.element(_name='fieldNAME

[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 r...@devshell.org 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 simply shows up

[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 whalb...@gmail.com wrote: this is great news. hope many of them convert not just stay with visiting! :) On 29

[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

[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. For

[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

[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 richar...@gmail.com 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:

[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

[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 denes1...@yahoo.ca wrote: Other that pointing them in the right direction?. On Mar 4, 8:06 am, mdipierro mdipie...@cs.depaul.edu wrote: There is a

[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: * 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 mdipie...@cs.depaul.edu wrote: On Mar 3, 7:23 pm, John Heenan

[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 mdipie...@cs.depaul.edu wrote: I am having lots of problems with uservoice. I am trying to comment

[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 r...@devshell.org 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

[web2py] Re: Uservoice: web2py forum

2010-02-25 Thread waTR
in the user community. On Feb 23, 4:56 pm, Richard richar...@gmail.com 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 r...@devshell.org 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:

[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 gr...@delarue-berlin.de wrote: Also, I couldn't find a link to the epydocs ?  Where did that go?  It was really

[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

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

2010-02-19 Thread waTR
, 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 r...@devshell.org wrote: 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

[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

[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 r...@devshell.org 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

[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 r...@devshell.org 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 r...@devshell.org 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
into the request.vars as it is returned from view on submit. ...help... On Feb 18, 8:47 pm, Jonathan Lundell jlund...@pobox.com 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 now populates

[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,

[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 whalb...@gmail.com wrote: i see many new people coming to the group and asking the same questions. please at least watch the

[web2py] Re: Request/Idea

2010-01-20 Thread waTR
+1 On Jan 19, 5:08 am, mdipierro mdipie...@cs.depaul.edu wrote: +1 On Jan 18, 11:00 pm, Anand Vaidya anandvaidya...@gmail.com wrote: +1 Excellent feature to possess. -Anand On Jan 19, 12:16 pm, Jason Brower encomp...@gmail.com wrote: I think it would be nifty to have an

[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

[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. --

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

2010-01-11 Thread waTR
(key)] In 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 r...@devshell.org wrote: I have a form made

[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 r...@devshell.org wrote: followup

[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 r...@devshell.org wrote: problem solved by looking in manual under DAL. did following: test = db(query).select() test[0

[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

[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 mdipie...@cs.depaul.edu wrote: It

[web2py:37395] Re: Form element definition examples

2009-12-16 Thread waTR
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') # grabs all inputs and textareas On Dec 15, 2:02 pm, waTR r...@devshell.org wrote: Is there a definition of all

[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

[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

[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

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

2009-11-28 Thread waTR
, 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 do in CSS. Massimo On Nov 27, 11:19 pm, waTR r...@devshell.org wrote: That sounds like it might

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

2009-11-28 Thread waTR
**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 mdipie...@cs.depaul.edu wrote: This makes a good point. On Nov 28, 2:36 pm, waTR r

[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 r...@devshell.org 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 art

[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 r...@devshell.org 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 r...@devshell.org wrote: So any chance a patch will be made? I

[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,

[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 r...@devshell.org wrote: I

[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 thade...@thadeusb.com wrote: custom form!!! FTW http://web2py.com/AlterEgo/default/show/205 I have

[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

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

2009-11-27 Thread waTR
', requires=CRYPT()), Field('oldpass', 'password', requires=CRYPT()), ) #view.html {{=form.custom.begin}} {{=form.custom.widget.name}} {{=form.custom.widget.lname}} {{=form.custom.widget.email}} . etc etc {{=form.custom.end}} -Thadeus On Fri, Nov 27, 2009 at 4:58 PM, waTR r

[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 mdipie...@cs.depaul.edu 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:25 pm, waTR r...@devshell.org

[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 r...@devshell.org

[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 input to class = password OR string OR whatever is

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

2009-11-27 Thread waTR
. 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 r...@devshell.org wrote: I am wondering if anyone is working on adding a capability to set a class for a single element

[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

[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

[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 rjeffr...@gmail.com 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

[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 Instert Language of Choice Here. 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.

[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 nat...@freezable.com wrote: The pain with the pingoworks

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

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

[web2py:31666] Re: Formating forms manually

2009-09-25 Thread waTR
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.table1.insert(field1=form1.vars.field1) Hope this helps. On Sep 24, 9:56 pm, BG beege...@gmail.com wrote: Hi waTR

[web2py:31670] Re: Auth customization

2009-09-25 Thread waTR
, Jonathan Lundell jlund...@pobox.com 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 ;) In our team we are separate...web designer doesnt know

[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 beege...@gmail.com 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

[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).

[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: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

[web2py:31415] Re: Auth customization

2009-09-21 Thread waTR
, 8:06 am, Jonathan Lundell jlund...@pobox.com wrote: On Sep 21, 2009, at 12:02 AM, Fran wrote: On Sep 21, 5:13 am, waTR r...@devshell.org wrote: Is it possible to convert the request.vars.get(passfied, '') to the same hash form as you would get from using form() ? Yes: myhash = hmac.new

[web2py:31375] Re: Auth customization

2009-09-20 Thread waTR
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.define_table('pass', SQLField(password, 'password', readable=False, label

[web2py:31389] Re: Auth customization

2009-09-20 Thread waTR
Massimo On Sep 20, 2:42 pm, Jonathan Lundell jlund...@pobox.com 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 doesn't really show how it compares the values. The if temp_user[passfield

[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:31280] Re: Auth customization

2009-09-18 Thread waTR
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... Cheers, Yannick P. On Sep 18, 2:50 pm, waTR r...@devshell.org wrote: I am looking to make use of Auth's facilities but implement my own registration form. How would one

[web2py:31290] Re: Auth customization

2009-09-18 Thread waTR
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 jlund...@pobox.com wrote: On Sep 18, 2009, at 1:06 PM, waTR wrote: Related question though... how can one check if password entered matches

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

2009-09-12 Thread waTR
and crud pretty 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 r...@devshell.org wrote: I am just wondering if anyone out there has any good case-studies or articles that gave them a better understanding

[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 nat...@freezable.com wrote: Try requires=IS_NULL_OR(IS_EMAIL()) On Sep 11, 4:59 pm, b00m_chef r...@devshell.org wrote: Is there a way make sure a table field that has requires = IS_EMAIL doesn't prevent form from being submitted if

[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

[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

[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

[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 mdipie...@cs.depaul.edu wrote: turns out string, double, date, datetime and time all have default validators. On Sep 4, 3:11 pm, waTR r...@devshell.org wrote: What was throwing me off

[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 davidthewat...@gmail.com 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

[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 r...@devshell.org 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

[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?

[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 nat...@freezable.com wrote: Sorry about the double post.  google groups

[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 to

[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 yark...@gmail.com 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

[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 mdipie...@cs.depaul.edu wrote: This is great to know. Can you say which company? Massimo On Aug 11, 8:49 pm, mr.freeze nat...@freezable.com wrote: I just replaced an asp.net mileage tracker app

[web2py:28275] Re: Web2py.com down

2009-08-09 Thread waTR
, Yarko Tymciurak yark...@gmail.com 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 r...@devshell.org wrote: Sorry, when I said web2py.com... --~--~-~--~~~---~--~~ You received

[web2py:28234] Re: Web2py.com down

2009-08-08 Thread waTR
Sorry, when I said web2py.com...I meant the domain...so www.web2py.com is included in that. Nothing that was using the domain worked. On Aug 7, 11:01 pm, Bottiger bottig...@gmail.com wrote: I'm using OpenDNS and it looks like the DNS records are messed up. If you

[web2py:28187] Re: Web2py Plug-in system

2009-08-07 Thread waTR
What about starting a wiki on this? Just post everything that has been achieved to-date re: specification ideas. On Aug 6, 11:54 pm, mdipierro mdipie...@cs.depaul.edu wrote: We talk about this over and over but no progress. It is not an issue of coding. We define a plugin as a piece of an

[web2py:28092] Re: Fwd: My thoughts on web2py

2009-08-06 Thread waTR
Re-writing a framework after 2-3 years is suicide. First, and foremost, we do not have enough developers to take-on such a huge task. Even if we did, it is still too early because they are not organized for such a task (look at Perl 6...and how long it is taking them to release a new version).

[web2py:27981] Re: Fwd: My thoughts on web2py

2009-08-04 Thread waTR
I don't feel it is necessary to re-write anything yet. There is a lot of good in it as it is. Don't just give up on it when you run into a few difficulties. We are not talking about anything that won't be addressed either. It is more of an issue of how it is addressed, and for all the weaknesses

  1   2   >