[web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-10 Thread DenesL
IS_EMPTY_OR is an alias for IS_NULL_OR, and they are validators so you would do db.table.field.requires=IS_EMPTY_OR(...) BR, Denes. On Feb 10, 4:59 am, Jason Brower encomp...@gmail.com wrote: That doesn't seem to work. I don't think there is a function called IS_EMPTY_OR in web2py. BR,

[web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-09 Thread DenesL
On Feb 9, 1:40 am, Jason Brower encomp...@gmail.com wrote: Don't know if I can discribe this in type but... I need a validator that can alow only one A B C D E F other wise it should be 0 That means you will accept anything but will have a value depending on the input, I haven't figure out

[web2py] Re: Customize classes or ids on SQLFORM submit button...

2010-02-09 Thread DenesL
With SQLFORM the submit button resides in the last row, second column. So form[0][-1][1][0] is the button. form[0] is the FORM form[0][-1] is the form's last row (TR) form[0][-1][1] is the second column (TD) form[0][-1][1][0] is the submit button (INPUT) you can change the class by

[web2py] Re: Needed Validation: A-F or 0 but A-F are unique...

2010-02-09 Thread DenesL
Scratch onaccept=function it should be onvalidation=function and it is not new, see manual section 7.1 :) BR, Denes. On Feb 9, 9:43 am, Jason Brower encomp...@gmail.com wrote: Gees, I get fancy new command thrown at me all the time. :P Thanks! BR, Jason Brower On Tue, 2010-02-09 at

[web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread DenesL
BTW I am working on improving the web2py wiki app, maybe it will be done today. On Feb 8, 11:43 pm, Mariano Reingart reing...@gmail.com wrote: For the web2py spanish documentation wiki (btw using web2py-wiki) we are working in several features, including wyswyg editing and pdf output, to

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-09 Thread DenesL
Don't wait for me, currently I have no plans to work on this. On 9 feb, 10:47, kralin andrea.pierle...@gmail.com wrote: Let me know if I can help. anyhow a good starting point would be making the table.insert() able to return None if no primary key or ID is defined. what do u think? is this

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-08 Thread DenesL
On Feb 8, 5:02 am, kralin andrea.pierle...@gmail.com wrote: well, a primary key is always a good thing in a table, but not everybody seems to use it, particularly in many to many tables. while this is not in the web2py specifications( by not requiring a unique autoincremental id), being

[web2py] Re: validators, min and max

2010-02-08 Thread DenesL
On Feb 8, 4:15 am, KONTRA, Gergely pihent...@gmail.com wrote: Hi! I found another inconsistency in validators: IS_INT_IN_RANGE: IS_INT_IN_RANGE(0,10) does not accepts 10. That is by design so that it works as the Python range built-in function. range(0,10) = [0,1,2,3,4,5,6,7,8,9] Yes,

[web2py] Re: validators, min and max

2010-02-08 Thread DenesL
LOL, you got me there... Can we make an exception? ... just kidding. On Feb 8, 11:24 am, KONTRA, Gergely pihent...@gmail.com wrote: And does it makes sense to make all min and max values optional, so you can have: enter an integer, which is larger than 2 (witout upper limit)? Having had

[web2py] Re: for your info

2010-02-08 Thread DenesL
On Feb 8, 11:33 am, mdipierro mdipie...@cs.depaul.edu wrote: I am considering posting most of the book on line in HTML. This may be +1000! possible with a disclaimer about do not reproduce in print. The main issue is that the book is in latex and not easy to convert. No latex to HTML

[web2py] Re: IS_IN_SET multiple=True with non-ASCII character failed

2010-02-08 Thread DenesL
On Feb 4, 4:26 pm, DenesL denes1...@yahoo.ca wrote: You need to lookup each character that is not in the x00-xFF range in a table: that should have read: is not in the x00-x7F range Anyway, I gave this some thought and it all depends on how you type in the characters. For example in Windows

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread DenesL
primary_key must be a list of fields from the table On Feb 5, 10:06 am, mdipierro mdipie...@cs.depaul.edu wrote: I do not know. You need to try that. I think if you use keyed tables with primary_key=None most of it should work and if not should be easy to fix. Please if you make these patches

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread DenesL
I just tested on 1.74.9 with primarykey=[] and it allows it but I would consider this a bug. How would you insert/retrieve/... records without a key?. Unless it has been changed to support it, this was not part of my original code. On Feb 5, 1:12 pm, kralin andrea.pierle...@gmail.com wrote: so

[web2py] Re: format zero IS_IN_DB

2010-02-04 Thread DenesL
Any more pros/cons on this? Now is the time to weigh in your opinion. -- 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] Re: Adding script to the head when extending layout.html

2010-02-04 Thread DenesL
See section 5.4 in the book. It explains page layout including blocks. -- 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] Re: generate pdf example

2010-02-04 Thread DenesL
See around line 100 in http://trac.sahanapy.org/browser/models/01_RESTlike_controller.py On Feb 4, 3:40 am, ceriox cer...@gmail.com wrote: hi all, there is a easy example of generating pdf app? -- You received this message because you are subscribed to the Google Groups web2py-users group.

[web2py] Re: The state of the wiki and documentation in general

2010-02-04 Thread DenesL
@Anand: thank you, let's hope it gets the required involvement. @tiago: No objection, be my guest. On Feb 4, 6:13 am, tiago almeida tiago.b.alme...@gmail.com wrote: Nice. I took the liberty of posting DenesL Change log to that site (Formatting is messed up don't know why). Hope that is ok

[web2py] Re: The state of the wiki and documentation in general

2010-02-04 Thread DenesL
First of all you can't just replicate the pdf book, only the code examples. Second, sales revenue is not an objective. The effort of webtopy is to unify scattered docs. An online version of documentation is not a bad idea, it allows timely update so it is always current (ala other doc wikis).

[web2py] Re: IS_IN_SET multiple=True with non-ASCII character failed

2010-02-04 Thread DenesL
Hi szimszon, you have to encode the options in UTF-8 and u'Új'.encode('UTF-8') does not do what you think it does. You need to lookup each character that is not in the x00-xFF range in a table: Ú is xC39A in UTF-8, so 'Új' encoded is '\xC3\x9Aj' The table I am using is at www.utf8-chartable.de

[web2py] Re: The state of the wiki and documentation in general

2010-02-03 Thread DenesL
AFAIK Massimo does not oppose but actually encourages the creation of more documentation in any form. On Feb 3, 2:48 pm, villas villa...@gmail.com wrote: Well to be fair, it didn't sound like Massimo was in favour of an online book earlier in this same thread. That was why I thought there

[web2py] new spanish user group created

2010-02-02 Thread DenesL
New spanish speaking web2py user group created: http://groups.google.com/group/web2py-usuarios/topics -- 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,

[web2py] Re: format zero IS_IN_DB

2010-02-02 Thread DenesL
^bump^ -- 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 more options, visit this group at

[web2py] Re: module problem

2010-02-02 Thread DenesL
On Feb 2, 9:52 am, mdipierro mdipie...@cs.depaul.edu wrote: I suspect the problem is that you hardcoded a filename and if a second requests arrives it conflicts with the previous one. You may need file locking or using tempfile or stringio. This exec('from applications.%s.modules import

[web2py] New features not documented in Book (2nd ed.)

2010-02-02 Thread DenesL
New features not documented in Book (2nd edition) 1.74.9 * Fixes security hole that affects 1.74.8 and 1.74.7 http://groups.google.com/group/web2py/browse_thread/thread/23c04866d81fe57d# 1.74.8 *** UPGRADE TO 1.74.9 IMMEDIATELY! ***

[web2py] Re: SQLTABLE: how to customise it?

2010-02-02 Thread DenesL
On Feb 2, 2:00 pm, Stefan stefan.louis.no...@gmail.com wrote: Is there a way to expand the amount of characters in a field? I've noticed that SQLTABLE (or more specifically, gluon.html.TABLE) tends to truncate the amount of visible text. I'm attempting to us the plugin_datatable plugin to

[web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread DenesL
Hi tiago, On Feb 1, 7:45 am, tiago almeida tiago.b.alme...@gmail.com wrote: Hello all, I really like web2py but allow me to say that the documentation in general is a bit lacking. For instance, the wiki looks to be unmantained for a long time. Also, I don't see a way to create pages there.

[web2py] Re: Custom form doesn't submit

2010-02-01 Thread DenesL
On Jan 29, 12:50 am, Adi aditya.sa...@gmail.com wrote: Ok, I removed the SELECT entirely to see if the form submits, but it still doesn't. Now I'm doing this: 1. created a read-only SQLFORM 2. did form[0].append(TR(my custom form fields here, Add another button)) But the Add Another

[web2py] web2py help resources

2010-02-01 Thread DenesL
Primary source of help: web2py groups - http://groups.google.com/group/web2py/topics http://groups.google.com/group/web2py-developers/topics http://groups.google.com/group/web2py-users-brazil/topics Tips on searching the users group

[web2py] Re: new to web2py, simple question about def return dict

2010-01-29 Thread DenesL
Hi candide and welcome aboard, returning a dict from a web2py function means that you want to call a view with the same name to render the output, as opposed to returning a string which will be the final output. In your views you can use the dict keys as variables to display information, for

[web2py] Re: format zero IS_IN_DB

2010-01-29 Thread DenesL
bump -- 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 more options, visit this group at

[web2py] Re: format zero IS_IN_DB

2010-01-29 Thread DenesL
, DenesL denes1...@yahoo.ca wrote: bump -- 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 more options

[web2py] Re: Decode field in one to many relation

2010-01-29 Thread DenesL
I see two ways: 1) Using a left join rows==db(db.Customer_storage.Customer_id==id_customer).select (db.Customer_storage.ALL,db.Storage.Model,left=db.Storage.on (db.Customer_storage.Object_id==db.Storage.id),orderby=db.Customer_storage.Object_id) so now rows includes a Storage.Model column 2)

[web2py] format zero IS_IN_DB

2010-01-28 Thread DenesL
Back in Jan.2/10 the default for zero was changed to '' http://groups.google.com/group/web2py/msg/684a2374e7379861 Consider: db.define_table('person',Field('name',unique=True), format='%(name)s') db.define_table('dog',Field('name',unique=True),Field ('owner',db.person), format='%(name)s') will

[web2py] Re: format zero IS_IN_DB

2010-01-28 Thread DenesL
Thanks, I've seen it. The problem with format and IS_IN_DB can be easily fixed in sql.py but I would be against setting the default of zero to '' in IS_IN_DB and IS_IN_SET if it creates an empty option in the dropdown. zero seems to have been introduced to display a choose a value kind of

[web2py] Re: Copy tables from existing table

2010-01-28 Thread DenesL
db.define_table('newname',*[f for f in db.table]) On Jan 28, 2:20 pm, Thadeus Burgess thade...@thadeusb.com wrote: Is there a way to iterate through the Field() elements of a table and use them to create another similar table ? I'm looking for something like db.define_table('hi',

[web2py] New features not documented in Book (2nd ed.)

2010-01-25 Thread DenesL
New features not documented in Book (2nd edition) 1.74.8 1) IS_SLUG() 2) web2py.py -nogui 3) solved a problem with jython 4) login has remember me option 5) fixed problem with keepvalues in update forms http://groups.google.com/group/web2py/browse_thread/thread/4075ac6578a5197e# 1.74.7 1)

[web2py] web2py help resources

2010-01-25 Thread DenesL
Primary source of help: web2py groups - http://groups.google.com/group/web2py/topics http://groups.google.com/group/web2py-developers/topics http://groups.google.com/group/web2py-users-brazil/topics Tips on searching the users group

[web2py] Re: Calling a SQLFORM through AJAX

2010-01-25 Thread DenesL
Is the form submitting to same controller perhaps? Then it would just return another form which is what you are experiencing. On Jan 25, 10:00 am, Khaled ElAdawy elad...@gmail.com wrote: I created a controller function that could be called through ajax and returns a SQLFORM. I've got the

[web2py] Re: Custom form doesn't submit

2010-01-25 Thread DenesL
On Jan 25, 6:35 am, Adi aditya.sa...@gmail.com wrote: Hi all, I'm trying to build a custom form in this fashion: There's a parent table and a child table (many one relationship). I've created a read-only SQLFORM for a record of the parent, and then I'm trying this: form1 =

[web2py] New features not documented in Book (2nd ed)

2010-01-24 Thread DenesL
New features not documented in Book (2nd edition) 1.74.7 1) request_password_reset and password reset verification 2) python web2py.py -S app -M -R script.py -A arg1 arg2 arg3 3) support for T(%(a)s) % dict(a=hello) http://groups.google.com/group/web2py/browse_thread/thread/fed8aa7e13d44ab2#

[web2py] Re: SQLFORM: add fields

2010-01-24 Thread DenesL
From http://groups.google.com/group/web2py/msg/e6acbb8df0db8e64 quote any helpers, including a form, is a tree: form[0] is the table in the form form[0][i] is the i-th row form[0][i][1] is the 2nd column of the i-th row form[0][i][1][0] is the INPUT inside that form[0]['_class'] is the class

[web2py] web2py help resources

2010-01-24 Thread DenesL
Primary source of help: web2py groups - http://groups.google.com/group/web2py/topics http://groups.google.com/group/web2py-developers/topics http://groups.google.com/group/web2py-users-brazil/topics Tips on searching the users group

[web2py] Re: Case Study: RAD development for Haiti Response

2010-01-22 Thread DenesL
Most excellent work. -- 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 more options, visit this

[web2py] Re: Request/Idea

2010-01-22 Thread DenesL
David (and all), do not feel the need to be entitled. Push, push hard if I you believe in it. I consider participation a net positive experience. You either add to the group or learn from your mistakes, as I can attest having made my fair share of them since joining. This group is the medium to

[web2py] Re: update a form field after validation

2010-01-22 Thread DenesL
If I understand correctly you could use onvalidation. Example: def your_action(): def funcx(): # code that runs after validation ... if form.accepts(..., onvalidation=funcx): ... On Jan 22, 10:51 am, leone handja...@gmail.com wrote: I have a SQLFORM.factory with a Field that

[web2py] Re: update a form field after validation

2010-01-22 Thread DenesL
Can you post your code? On Jan 22, 11:14 am, leone handja...@gmail.com wrote: I done it, but when I update forms.vars. with the new value it is not update in the form. Have you a suggest? leone On 22 Gen, 17:03, DenesL denes1...@yahoo.ca wrote: If I understand correctly you could use

[web2py] Re: Request/Idea

2010-01-22 Thread DenesL
On Jan 22, 1:14 pm, villas villa...@gmail.com wrote: Thadeus, stop messing around and get that PluginCentral finished!!! +1 ;) -- 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

[web2py] Re: How to insert javascript?

2010-01-22 Thread DenesL
How would you validate the field?. -- 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 more

[web2py] Re: How to insert javascript?

2010-01-22 Thread DenesL
(value,error) = db.optiontable.optionvalue.requires (request.vars.option) if not error: return json(dict(id=db.optiontable.insert(optionvalue=value) else: return json(dict(id=0,error=error)) On Jan 22, 12:31 pm, DenesL denes1...@yahoo.ca wrote: How would you

[web2py] Re: keyed tables

2010-01-21 Thread DenesL
Hi Pier, welcome to the group. I believe there is a slight misunderstanding probably generated by Note 5 in the referenced post: 5) update_record function is not available update_record is a function used to update single records (objects of class gluon.sql.Row) and for technical reasons it is

[web2py] Re: validation problems

2010-01-21 Thread DenesL
On Jan 20, 6:44 pm, hamdy.a.farag hamdy.a.fa...@inbox.com wrote: Thank you Denzel for replying for the IS_EXPR(), In fact I did my own validator that does what I need It's nice though to know about onvalidation which makes life easier For the other translation problem, I guess after all

[web2py] Search frustration

2010-01-21 Thread DenesL
Trying to locate older posts in this group using Google, Gmane, Bing, etc. seems like an exercise in futility. Even with the exact subject of the post NONE of the above can locate it. Ridiculous. No wonder some of the questions keep popping up. Does anybody know of a better way?. We might need to

[web2py] Re: Search frustration

2010-01-21 Thread DenesL
I already found the post by scrolling thru pages and pages. So then, using the exact words in it, a search got this many hits: zero, zip, zilch, nada! just as if it did not exist. There must a better way... -- You received this message because you are subscribed to the Google Groups

[web2py] Re: Iterate through form (SQLFORM)

2010-01-20 Thread DenesL
Vihang, something like this should get you started: for e in form.components[0]: print e[0][0] # labels print e[1][0] # non-labels Denes On Jan 20, 5:19 am, vihang vihan...@gmail.com wrote: Hello, Is there any way I can iterate through a form? I want to construct a form, with two

[web2py] Re: validation problems

2010-01-20 Thread DenesL
On Jan 19, 1:34 pm, hamdy.a.farag hamdy.a.fa...@inbox.com wrote: So this's a bug ? Rigid but not a bug. Is not any way to handle this ? Yes, you can create your own validator. A slightly modified version of IS_INT_IN_RANGE will do. and for my other problem thanks for the link , but what I

[web2py] Re: validation problems

2010-01-19 Thread DenesL
It is just a syntax error, instead of: T(...,dict(...)) use T(...%dict(...)) # percent instead of comma On Jan 19, 5:17 am, hamdy.a.farag hamdy.a.fa...@inbox.com wrote: Hi I'm having 2 problems : I've a problem translating a custom error message in the : IS_INT_IN_RANGE(v1, v2,

[web2py] Re: validation problems

2010-01-19 Thread DenesL
About the second problem see http://groups.google.com/group/web2py/msg/310e60879763b431 -- 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] Re: validation problems

2010-01-19 Thread DenesL
On Jan 19, 10:25 am, hamdy.a.farag hamdy.a.fa...@inbox.com wrote: self.error_message = error_message % dict(min=self.minimum, max=self.maximum-1) TypeError: unsupported operand type(s) for %: 'lazyT' and 'dict' The way the validator is setup it does not allow you to change the values in the

[web2py] Re: validating an empty select

2010-01-15 Thread DenesL
',...]) fields=[list_of_field_names_that_should_be_in_the_form] and form.accepts will validate using the above requires if it is set before creating the form in the controller. Denes On Jan 15, 9:23 am, Miguel Lopes mig.e.lo...@gmail.com wrote: On Fri, Jan 15, 2010 at 2:00 PM, DenesL denes1...@yahoo.ca

[web2py] Re: Getting representation from two levels deep relation

2010-01-14 Thread DenesL
'represent' is used for output type fields. I believe you should be trying with a widget to get the SELECT you want. -- 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

[web2py] Re: the length of the string field in the model ...

2010-01-13 Thread DenesL
db.table.field.length On Jan 13, 8:30 am, pyparser jkel...@gmail.com wrote: I am creating an interface where I want the input fields to reflect the length of the string fields in the model. How do I find the length of the string field as defined in the model? pyparser -- You received this

[web2py] Re: new in trunk RFC

2010-01-12 Thread DenesL
On Jan 12, 10:26 am, mdipierro mdipie...@cs.depaul.edu wrote: On Jan 12, 12:46 am, KMax mkostri...@gmail.com wrote: few questions bellow: On 10 янв, 21:38, mdipierro mdipie...@cs.depaul.edu wrote: There are two new features in trunk. One will probably stay, the other I do not know:

[web2py] Re: Strange behaviour when appending on lists

2010-01-11 Thread DenesL
This behaviour is explained in Python's documentation under Language reference, topic 3.1 Objects, values and types (in 2.5.4): Some objects contain references to other objects; these are called containers. Examples of containers are tuples, lists and dictionaries. The references are part of a

[web2py] web2py help resources

2010-01-07 Thread DenesL
Primary source of help: web2py groups - http://groups.google.com/group/web2py/topics http://groups.google.com/group/web2py-developers/topics http://groups.google.com/group/web2py-users-brazil/topics Tips on searching the users group

[web2py:38275] New features not documented in Book (2nd edition)

2010-01-03 Thread DenesL
New features not documented in Book (2nd edition) 1.74.5 * auth.user_id (shortcut for auth.user.id, defaults to None if not logged in) * support for all native types on GAE (e.g. StringListProperty) * cache.ram usage statistics * no more auth menu in scaffolding * no more splash screen with -Q *

[web2py:37804] Re: Happy Holidays

2009-12-24 Thread DenesL
Ditto On Dec 23, 11:25 pm, mdipierro mdipie...@cs.depaul.edu wrote: I wish everybody Happy Holidays. I will probably be on the list as any other day. Massimo -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email

[web2py:37663] Re: LOAD function anybody?

2009-12-22 Thread DenesL
Massimo, could you document/explain all the options of LOAD (i.e. finish alterego 252)? I know they may be on the video but for reference purposes it would be great to have them written down. It also makes them readily available for the next book ;) Thanks, Denes. -- You received this message

[web2py:37585] Re: SQLFORM, no-table, with fieldsets.

2009-12-20 Thread DenesL
On Dec 20, 3:27 am, Thadeus Burgess thade...@thadeusb.com wrote: I can see the logic for how a SmartForm would work, and perhaps as Yarko suggests I need to sit down and do some flow charts so we can all get an idea of what I'm thinking, and how this would actually benefit. Lots of things

[web2py:37605] Re: LOAD function anybody?

2009-12-20 Thread DenesL
Nice! thanks for pointing it out. I wasn't aware of it, I did not watch that video until now. Link to the video: http://vimeo.com/7182692 On Dec 18, 10:19 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/AlterEgo/default/show/252 -- You received this message because you are

[web2py:37518] Re: Understanding the DAL

2009-12-18 Thread DenesL
Jake, one of the things that helped me when I started with web2py was running it in a shell from the command line and using python functions like dir on the web2py objects, as explained in chapter 4 in the book: web2py.py -M -P -S your-app-name epydocs

[web2py:37521] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread DenesL
Johann, print db seems ok and shows instansie as one of the db tables but print db.instansie is not ok, it should output Table {...} maybe there is typo somewhere and db.instansie is being reassigned (=) instead of compared (==). Denes. -- You received this message because you are subscribed

[web2py:37523] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread DenesL
Oops... (I wasn't typing the 'print' part) Same error here using 1.74.3 Works fine in 1.74.2 Looking into it... Denes -- 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

[web2py:37524] Re: Understanding the DAL

2009-12-18 Thread DenesL
In the first book there was an excelent diagram on page 133 about the relation between these objects, which unfortunately was missing from the second edition and would need to be updated anyway. -- You received this message because you are subscribed to the Google Groups web2py-users group.

[web2py:37528] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread DenesL
After adding a print key statement in line 1269 I got no error. After deleting sql.py and updating hg I can't reproduce the problem. Update glitch?. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:37534] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread DenesL
On Dec 18, 11:59 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Dec 18, 10:47 am, mdipierro mdipie...@cs.depaul.edu wrote: hg glitch? This would be very bad. I am not saying it was hg's fault, it could have been the client or a PIBKAC (problem is between the keyboard and chair), I

[web2py:37457] Re: Feature Request: return dict(var)

2009-12-17 Thread DenesL
dict(key1=val1, key2=val2, ...) is actually a python construct not a web2py one, and it can be used when the keys are simple strings. Moreover this construct is already a shortcut for the more verbose dict('key1':val1, ...) You could however do something like this: def asdict(L): return dict(

[web2py:37375] Re: form.vars.id - TypeError: 'NoneType'

2009-12-16 Thread DenesL
I traced the error to compileapp.py line 434, vars has an 'xml' attribute but its value is 'None'. Now comes the hard part: why and what to do? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:37315] Re: SQLFORM, no-table, with fieldsets.

2009-12-15 Thread DenesL
On Dec 15, 7:49 pm, Thadeus Burgess thade...@thadeusb.com wrote: class PRenderer(FormRenderer):    def __init__(form):        ...    def __call__():        return FORM(        for field in self.form.fields         P(             LABEL(field.label+:),                 field.widget,        

[web2py:37316] Re: Excess whitespace in html

2009-12-15 Thread DenesL
Looking good.. On Dec 15, 8:11 pm, kbochert kboch...@copper.net wrote: Amazingly enough, the following snippet appears to filter excess lines while leaving pre blocks unchanged!! import re def remove_line(mo):     s = mo.group()     if s.startswith('pre'):     return s     return '\n'

[web2py:37153] Re: HELP with new DAL

2009-12-14 Thread DenesL
About uploads folder, is the problem that hg does not allow empty folders? None of the apps in the hg repository (including welcome) have an uploads folder. With rev.30: Traceback (most recent call last): File C:\web2py\hg\gluon\restricted.py, line 173, in restricted exec ccode in

[web2py:37157] Re: HELP with new DAL

2009-12-14 Thread DenesL
Also, testing DB2: Traceback (most recent call last): File C:\web2py\hg\gluon\restricted.py, line 173, in restricted exec ccode in environment File C:/web2py/hg/applications/nav3/models/db.py, line 5, in module dot4=SQLDB('db2:DSN=dot4;UID=web2py;PWD=xxx') File

[web2py:37165] Re: HELP with new DAL

2009-12-14 Thread DenesL
. (-180) (SQLExecDirectW)') On Dec 14, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: This I fixed, please try again. Thanks Denes. Your tests help a lot. On Dec 14, 8:27 am, DenesL denes1...@yahoo.ca wrote: Also, testing DB2: Traceback (most recent call last): File C:\web2py\hg\gluon

[web2py:37166] Re: HELP with new DAL

2009-12-14 Thread DenesL
type bit. (245) (SQLExecDirectW)) On Dec 14, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: Can you reproduce this with the latest trunk? Is SQLAdapter.represent_exception being called? What does it return? On Dec 14, 5:51 am, DenesL denes1...@yahoo.ca wrote: About uploads folder

[web2py:37192] Re: SQLFORM, no-table, with fieldsets.

2009-12-14 Thread DenesL
Many moons have passed since I last looked at this but if I remember correctly I went for a class that was based on SQLFORM (currently sitting in the back burner). SQLFORM mixes processing and presentation very tightly, which is fine for starters but you soon get to a point where you want to

[web2py:37206] Re: SQLFORM, no-table, with fieldsets.

2009-12-14 Thread DenesL
On Dec 14, 6:00 pm, Thadeus Burgess thade...@thadeusb.com wrote: Take, for example:  http://jeffhowden.com/code/css/forms/ Ah yes, that was one of the many pages I saw during my research. But even that is too static for me. I want to change the layout on the fly, even live, and to remember it.

[web2py:37210] Re: Excess whitespace in html

2009-12-14 Thread DenesL
It all comes down to a trade off. Do you want you view or your final output to be legible and aesthetically pleasing according to some subjective human standard?. Don't get me wrong, I dislike the empty lines as much as you do but as Massimo said the view only outputs what it has: this view

[web2py:37215] New features not documented in Book 2nd edition

2009-12-14 Thread DenesL
New features not documented in Book 2nd edition 1.74.1 * Moved to mercurial * Default validators use the new define_table(,format='...') http://groups.google.com/group/web2py/browse_thread/thread/35298fa6005a3a5b * New get_vars and post_vars compatible in 2.5 and 2.6 (thanks Tim) * Major

[web2py:37120] Re: HELP with new DAL

2009-12-13 Thread DenesL
Using changeset 21 and mssql : Traceback (most recent call last): File C:\web2py\hg\gluon\restricted.py, line 184, in restricted exec ccode in environment File C:/web2py/hg/applications/w2/models/db.py, line 4, in module db3=SQLDB(mssql://usr:p...@localhost/w2pdb) File

[web2py:37133] Re: HELP with new DAL

2009-12-13 Thread DenesL
The first time I accessed appadmin/select/db3?query=db3.test.id0 it worked fine but after inserting a record (which never inserted even after the msg said it did) it produces a flash msg saying: Invalid Query '_db_codec' note: it is a mssql db. -- You received this message because you are

[web2py:37144] Re: HELP with new DAL

2009-12-13 Thread DenesL
_db_codec problem gone but got a couple new mssql problems with rev.27 on winXP: Traceback (most recent call last): File C:\web2py\hg\gluon\restricted.py, line 184, in restricted exec ccode in environment File C:/web2py/hg/applications/w2/controllers/appadmin.py, line 308, in module

[web2py:37145] Re: can't upload w2p from/to changeset 10

2009-12-13 Thread DenesL
will fix this in trunk. As usual this is because of a new feature introduced in 10. On Dec 11, 9:40 pm, DenesL denes1...@yahoo.ca wrote: w2p files created with changeset 10 give this error on upload (also running changeset 10): Traceback (most recent call last):   File C

[web2py:37081] Re: can't upload w2p from/to changeset 10

2009-12-12 Thread DenesL
Steps: 1) Pack all an application from site admin screen. 2) Use Upload existing application to upload the w2p file you just downloaded. 3) New application successfully created. This is with python 2.6 and just the plain web2py built-in server. ~Brian On Dec 11, 9:40 pm, DenesL denes1

[web2py:37014] Re: Populate failed with 'time' field

2009-12-11 Thread DenesL
Yes, TortoiseHG. In the old one, also Tortoise, I just had to right click and select update (or whatever it was since I had to delete it to get the icons working with hg) and web2py was updated; show log also displayed all the available updates up to the latest one posted. On this one neither does

[web2py:37069] can't upload w2p from/to changeset 10

2009-12-11 Thread DenesL
w2p files created with changeset 10 give this error on upload (also running changeset 10): Traceback (most recent call last): File C:\web2py\hg\gluon\main.py, line 436, in wsgibase parse_get_post_vars(request, environ) File C:\web2py\hg\gluon\main.py, line 308, in parse_get_post_vars

[web2py:36948] Re: validator less than

2009-12-10 Thread DenesL
^bump^ -- 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 more options, visit this group at

[web2py:37000] Re: Populate failed with 'time' field

2009-12-10 Thread DenesL
erm... my hg client does not see any change (latest is changeset 4 from 2 days ago). I am assuming trunk means https://web2py.googlecode.com/hg/ Thanks. On Dec 10, 9:41 pm, mdipierro mdipie...@cs.depaul.edu wrote: uploading fix in trunk. Thanks for checking. On Dec 10, 8:24 pm, villas

[web2py:37004] Re: Populate failed with 'time' field

2009-12-10 Thread DenesL
wrote: Can you try again: http://code.google.com/p/web2py/source/detail?r=22ea4f41b932e7173d4ac... On Dec 10, 10:01 pm, DenesL denes1...@yahoo.ca wrote: erm... my hg client does not see any change (latest is changeset 4 from 2 days ago). I am assuming trunk meanshttps

[web2py:36882] Re: validator less than

2009-12-09 Thread DenesL
, DenesL denes1...@yahoo.ca wrote: Speed bump... in JSCal2 author's words: The new calendar isn't exactly free. Clockpick does not mention a license so I am assuming free. A vote on the new calendar jQuery plugin? -- You received this message because you are subscribed to the Google Groups

[web2py:36916] mercurial clone problem

2009-12-09 Thread DenesL
Using TortoiseHG on windows XP I created a repository and cloned web2py from https://web2py.googlecode.com/hg/ but when I try to create a new app I get: unable to create application ... (?) help! -- You received this message because you are subscribed to the Google Groups web2py-users group.

[web2py:36826] Re: validator less than

2009-12-08 Thread DenesL
Speed bump... in JSCal2 author's words: The new calendar isn't exactly free. Clockpick does not mention a license so I am assuming free. A vote on the new calendar jQuery plugin? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

<    4   5   6   7   8   9   10   11   12   13   >