[web2py] Apache using 99% cpu, when web2py accessed using JQ-mobile - latest psycopyg2 used

2013-01-04 Thread Nik
I've posted the question on StackOverFlow too, but I thought this would be the correct place : http://stackoverflow.com/questions/14150481/web2py-premature-end-of-script-headers-wsgihandler-py-apache-eating-cpu-9 Here is the flow : 1.) User visits the default/index.html 2.) Accessing this

Re: [web2py] Web2Py : JQuery .ajax data sent not present in request.vars

2012-09-05 Thread Nik
Thanks Bruno ! That worked, but now when I get the response back as JSON, JQuery throws an error saying the JSON isn't valid. The JSON seems valid to me also passes JSONLint test : {readyState:4,responseText:FIFA support India for U-17 and 2022 World Cup - Times,status:200,statusText:OK}

Re: [web2py] Web2Py : JQuery .ajax data sent not present in request.vars

2012-09-05 Thread Nik
-- print -- #rows=db(db.NewsMaster).select(db.NewsMaster.ALL) myobj = [dict(value=x),dict(value=x), dict(value=x)] return json.dumps(myobj) On Wed, Sep 5, 2012 at 6:51 PM, Nik nikhil@gmail.com

Re: [web2py] Change the case in auth.navbar?

2012-01-25 Thread Nik Go
Hmm ... if one is gonna be anal about this, I think lost should be used instead. Some users never really know their passwords or usernames, they are either recorded somewhere or recorded automatically (autofill?), and in case they loose this, then they never really forgot since they never

Re: [web2py] Re: Cherrypy can run on android ! without any patching needed , Can Rocket do that?

2012-01-15 Thread Nik Klever
without disk caching and the normal use-case for web2py on Android is for single-users - it does not makes any sense to use it as a server for more than one user ! Greetings, Nik I did not try but I think yes because it does not use any additional libraries. On Jan 14, 6:50 am, Phyo Arkar

[web2py] processing blob fields containing xml

2012-01-11 Thread Nik Go
I access a legacy table that contains a number of fields: db.define_table(source ,Field('sourceID', 'id') ,Field('name', 'string') ,Field('refNumber', 'string') ,Field('actualText', 'text') ,Field('remarks', 'text') ,Field('fields', 'blob')) The fields field contains an XML description of

Re: [web2py] web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Nik Go
congratulations Massimo! kudos, too, to everyone who makes this mailing list an excellent peer-to-peer support site. (That goes for you, Anthony.) ;-) On Monday, January 9, 2012, Anthony wrote:

Re: [web2py] Python for Android (any takers to run web2py)

2012-01-09 Thread Nik Go
Offhand, I could think of a custom app for that itch you want to scratch .. On Tuesday, January 10, 2012, Plumo wrote: what is the use case for running a web framework on your Android phone?

Re: [web2py] How to do that: Verifying email account ownership

2012-01-05 Thread Nik Go
Do you mean a registered user's email address? It's included in web2py, just enable it. Check out http://web2py.com/book/default/chapter/09#Mail-and-Auth On Friday, January 6, 2012, thstart wrote: Verifying email account ownership - I am brainstorming for the best way to know email address

Re: [web2py] Happy new year

2012-01-01 Thread Nik Go
malipayong bag-ong tuig! On Sunday, January 1, 2012, Massimo Di Pierro wrote: Happy new year everybody!

[web2py] grid's showbuttontext

2011-12-29 Thread Nik Go
I've set showbuttontext=False but all i get are tiny buttons without any of the default icons. Did I miss anything during the upgrade?

[web2py] db.tablename and reference tablename multiple databases

2011-12-26 Thread Nik Go
The book states: In fact db.tablename and reference tablename are equivalent field types. But this seems to be true only if you are using a single database. I had a second database, db2 and defined a reference field to it as: Field('myfield', db2.country) and Web2Py created the field type:

[web2py] new style virtual fields and autocomplete

2011-12-24 Thread Nik Go
Thanks to Anthony for correcting my virtual field definition from geo.ad1.vname=Field.Virtual(lambda r: %s, %s % (r.name, geo.country(r.id_un).iso3_0)) to: geo.ad1.vname=Field.Virtual(lambda r: %s, %s % (r.ad1.name, geo.country(r.ad1.id_un).iso3_0)) #table name specified However, it seems

Re: [web2py] Merry christmas

2011-12-24 Thread Nik Go
Malipayong Pasko! On Sunday, December 25, 2011, Richard Vézina wrote: :) Richard PS.: Thank you all for helps, particularly Anthony, Massimo...

[web2py] virtual field question

2011-12-23 Thread Nik Go
When I try to access the ad1 table from appadmin, a message is displayed Invalid Query 'name' and the table isn't displayed. No exceptions or tickets are generated. If I comment out the virtual field, it works fine. What is wrong in my virtual field definition below? geo.define_table('country'

[web2py] virtual field question

2011-12-23 Thread Nik Go
When I try to access the ad1 table from appadmin, a message is displayed Invalid Query 'name' and the table isn't displayed. No exceptions or tickets are generated. If I comment out the virtual field, it works fine. What is wrong in my virtual field definition below? geo.define_table('country'

[web2py] virtual field question

2011-12-23 Thread Nik Go
When I try to access the ad1 table from appadmin, a message is displayed Invalid Query 'name' and the table isn't displayed. No exceptions or tickets are generated. If I comment out the virtual field, it works fine. What is wrong in my virtual field definition below? geo.define_table('country'

Re: [web2py] Bugtracker for web2py?

2011-12-21 Thread Nik Go
http://code.google.com/p/web2py/issues/entry On Wednesday, December 21, 2011, greenguerilla wrote: Hi guys, I found a small error in the documentation and was looking for a bugtracker where I could log this. Can someone please pass me the url? Thanks, John

Re: [web2py] Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Nik Go
Martin, I have a feeling that what you're looking is multi-form updates (try to search for that term) where a parent record (your person) and child record (your cvrows) are updated simultaneously. On Wednesday, December 21, 2011, Jim Steil wrote: have you looked at SQLFORM.smartgrid?

[web2py] computed field or is_in_db(query...

2011-12-19 Thread Nik Go
commas at the beginning of a line is not a common practice, but not necessarily a bad one. I use it myself, having been bitten by too many missing commas too often. ;) On Tuesday, December 20, 2011, Richard Vézina wrote: I have difficulty to understand your models because they are not in

Re: [web2py] email/password login only: How to change email to lower case at the register page and store as a lower case to the database.

2011-12-18 Thread Nik Go
Couldn't you just add something like this? #in your db.py, after auth.define_tables() db.auth_user.email.requires=(IS_LOWER(),IS_EMAIL(),IS_NOT_IN_DB(db,'auth_user.email')) Or if you use customize your auth tables ...: Field('email', length=512,default='',comment='*'

Re: [web2py] How to change the message 'value already in database or empty' in Register?

2011-12-18 Thread Nik Go
IS_IN_DB(db(db.mytable.id0), 'mytable.id', db.mytable._format ,error_message=T(Sorry chap, that doesn't exist)) You may specify your own error_message for any built-in validator. On Sunday, December 11, 2011, Constantine Vasil wrote: How to change the message 'value already in database or

[web2py] Re: list:reference validation

2011-12-18 Thread Nik Go
Anthony, could you elaborate a bit on that notation? multiple=(0,3) I wanted a maximum of two items and yet I need to write 3. In the book, I've seen something similar with the limitby argument for DAL select: for row in db().select(db.person.ALL, limitby=(0, 2)): print row.name which fetches

[web2py] Re: grid search exceptions

2011-12-18 Thread Nik Go
please check: http://code.google.com/p/web2py/issues/detail?id=572 Thanks On Friday, December 16, 2011, Massimo Di Pierro wrote: Can you please open a ticket about this? On Dec 16, 12:10 am, Nik Go nikolai...@gmail.com javascript:; wrote: A grid search causes an exception when a user

[web2py] Re: list:reference validation

2011-12-15 Thread Nik Go
Thanks Anthony. I don't think I've seen that in the docs. On Thursday, December 15, 2011, Anthony wrote: Try IS_IN_DB(..., multiple=(0, 3)) The multiple argument to IS_IN_SET and IS_IN_DB can be a list or tuple specifying a minimum and maximum number of items to be selected (strictly less

[web2py] Re: weird database behavior

2011-12-15 Thread Nik Go
Isn't that the default behavior? I mean, after registration a user is automatically logged in. Anyway, what I did was when a currently logged-in and unverified user's account is verified or updated by the admin, his status will be updated when he checks his profile (or logs out and logs in

Re: [web2py] smartgrid - still not resolving a problem

2011-12-15 Thread Nik Go
Try this: db.po_sku.default=lambda v,r: db.sku[r.sku_id].cpu On Friday, December 16, 2011, Adi wrote: I'm still trying to resolve my problem, and desperately need someone's help :) When I try to add a new sku to a purchase order, I would like to prepopulate CPU field with the value from

[web2py] Re: grid question - specifying initial fields

2011-12-15 Thread Nik Go
form=SQLFORM.grid(blah, ... fields=fields ...) This is handy for lots of things. Beware of this, though: if len(request.args) 1 and request.args[-2]=='new': Anyway, you get the picture. On Dec 14, 11:19 pm, Nik Go nikolai...@gmail.com javascript:; wrote: Is there a parameter to specify

Re: [web2py] smartgrid - still not resolving a problem

2011-12-15 Thread Nik Go
Ah .. so you want it processed as soon as the drop-down is selected? That would need some Ajax magic. On Friday, December 16, 2011, Adi wrote: i put it as suggested, but it didn't work... another problem is onchange', when a different value gets selected in dropdown how to pass the

Re: [web2py] remove references problem

2011-12-15 Thread Nik Go
Yes. Because your first statement only declares a default value for a field type 'string', the default field type. The second statement, redefines the field as a reference field which by default deletes all references if the parent record is deleted. Check out ondelete='CASCADE' #this is the

Re: [web2py] referenced auth.user_id type string

2011-12-15 Thread Nik Go
Hmm.. I've actually declared fields of type 'integer', then declare a validator field much later in the code. Often in a custom auth_user fields that needs to refer to tables which will be defined much later. Kinda makes it like a pseudo-reference field. Field('account_status', 'integer')#

Re: [web2py] ldap failed Version 1.99.4

2011-12-15 Thread Nik Go
Everytime a *new* stable version is out, I come to expect minor releases happening in the next several days and try to hold off my own upgrade for as long as possible. :P On Friday, December 16, 2011, Massimo Di Pierro wrote: Looks like we need a 1.99.5 thanks Omi On Dec 15, 9:43 am, Omi

[web2py] grid search exceptions

2011-12-15 Thread Nik Go
A grid search causes an exception when a user enters an unexpected field type. I have this field: Field('gender', 'integer', default=0, requires=IS_IN_SET([(0,'Unknown'), (1, 'Male'), (2, 'Female')]) Since they are represented as a string (ie Male) on screen, the user may attempt a search like

[web2py] Re: weird database behavior

2011-12-14 Thread Nik Go
, had I realized this, my question should be, and is now:* is there a way to update a currently logged-in user's status to reflect the latest value in the db other than asking the user to log-off first?* /r On Tuesday, December 13, 2011, Nik Go wrote: I'm still stuck with this :( I've already

[web2py] Re: weird database behavior

2011-12-14 Thread Nik Go
, had I realized this, my question should be, and is now:* is there a way to update a currently logged-in user's status to reflect the latest value in the db other than asking the user to log-off first?* /r On Tuesday, December 13, 2011, Nik Go wrote: I'm still stuck with this :( I've already

[web2py] 1.99.4 grid icons and showbuttontext

2011-12-14 Thread Nik Go
If showbuttontext=False I couldn't see the default icons anymore. (i.e the magnifying glass for the view button)

[web2py] grid question - specifying initial fields

2011-12-14 Thread Nik Go
Is there a parameter to specify initial fields to display in a grid and still display the rest of the viewable fields only when the record is accessed? For example, I would like the grid to initially show: field1, field2, field3,field4 but when the view button is clicked it will display all

[web2py] list:reference validation

2011-12-14 Thread Nik Go
I have a list:reference field and would like a user to select none or up to two values from the list I could validate by calling onvalidation but I'm wondering if there's any built-in validator that should work? I've tried the following, none of which worked for me: -

[web2py] Re: weird database behavior

2011-12-14 Thread Nik Go
hmm ... I tried auth.user.account_status=db.auth_user[auth.user.id ].account_status , but I get an error: AttributeError: 'NoneType' object has no attribute 'account_status' On Wednesday, December 14, 2011, Anthony wrote: In my design case registration doesn't require approval, but access to

Re: [web2py] Two questions: 1. empty SQLFORM.grid 2. Represent question

2011-12-14 Thread Nik Go
columns support has been dropped, right? On Thursday, December 15, 2011, Cliff wrote: On 1.99.2, grid will display a row for each row returned by the query, but won't show any data from the secondary table. Unless I'm missing a step. Actually I would be happy if that were the case, as I

[web2py] error downloading 1.99.3

2011-12-13 Thread Nik Go
I'm not sure if it's my crappy mobile Internet connection or something else but I couldn't seem to download a good copy of the version 1.99.3. When testing the zip file, I get this error: error: invalid compressed data to inflate web2py/applications/examples/static/artwork.tar.gz. I already

[web2py] Re: error downloading 1.99.3

2011-12-13 Thread Nik Go
connection or just clear your cache and try downloading again... or use wget On Dec 13, 6:04 am, Nik Go nikolai...@gmail.com javascript:; wrote: I'm not sure if it's my crappy mobile Internet connection or something else but I couldn't seem to download a good copy of the version 1.99.3

[web2py] Re: error downloading 1.99.3

2011-12-13 Thread Nik Go
P.S. I downloaded using aria2 and wget. Same result. On Wednesday, December 14, 2011, Nik Go wrote: Yeah, probably. I just ignored the file, and it seems to be working. On Wednesday, December 14, 2011, kasapo wrote: I downloaded the 1.99.3 source today and unzipped it with no issues. Maybe

[web2py] Re: weird database behavior

2011-12-12 Thread Nik Go
. Under what conditions would this thing happen: a function returning a row that doesn't exist? What are the other things I should check? On Monday, December 12, 2011, Nik Go wrote: And the other fields are still set to none, while their true values are otherwise. On Monday, December 12, 2011

[web2py] weird database behavior

2011-12-11 Thread Nik Go
I have a custom auth_user field that I could edit from admin (and I can verify that changes are actually written in the sqlite table) but every time I check the data from a view, the field value is always set to the initial default values, and not whatever's actually stored in the table. It's like

[web2py] Re: weird database behavior

2011-12-11 Thread Nik Go
And the other fields are still set to none, while their true values are otherwise. On Monday, December 12, 2011, Nik Go wrote: Here's a screenshot. Noticed that i edited the name toGJonathan but the response.flash retrieves it as Jonathan On Monday, December 12, 2011, Nik Go wrote: I

Re: [web2py] Getting table a to use as default string from field in table b

2011-12-11 Thread Nik Go
db.table_settings.default_value.requires = IS_IN_SET(['a','b']) db.table_settings['parent_table'].default_value*.default* I think this is what you want, but make sure that you assign your validators first in your table_settings, because otherwise they're empty (or properly, None) On Monday,

[web2py] user profile - adding a button

2011-12-10 Thread Nik Go
How do I add a new button in a user's profile page that redirects to another view?

Re: [web2py] Submit gutton in fields

2011-12-03 Thread Nik Go
My own workaround for this issue is to to declare it as string and regexp ,Field('actual_date', 'string', length=10 # or -MM or -MM-DD ,requires=IS_EMPTY_OR(IS_MATCH('^(\d{4})$|^(\d{4})[- /.]((0[1-9])|(1[0-2]))$|^(\d{4})[- /.]((0[1-9])|(1[0-2]))[-

[web2py] Re: message application is compiled and cannot be installed

2011-12-01 Thread Nik Go
Yes! Really weird. I created a ticket: http://code.google.com/p/web2py/issues/detail?id=544 On Thursday, December 1, 2011, Massimo Di Pierro wrote: It gets compiled without you clicking the button? On Nov 30, 8:44 pm, Nik Go nikolai...@gmail.com javascript:; wrote: This is a trifle

Re: [web2py] How disable date widget?

2011-12-01 Thread Nik Go
You can do it here: http://code.google.com/p/web2py/issues/entry On Thursday, December 1, 2011, Vinicius Assef wrote: Where do I open it? On Thu, Dec 1, 2011 at 2:57 AM, Massimo Di Pierro massimo.dipie...@gmail.com javascript:; wrote: I would consider this an improvement. Please open a

Re: [web2py] Doubt about multi-tenancy

2011-12-01 Thread Nik Go
look for roles, groups and memberships in the book On Thursday, December 1, 2011, Vinicius Assef wrote: I think I'll use web2py multi-tenancy, but I have some doubts: I have different user profiles in my app: a) customer: can view/edit only it's own data. b) seller: can view/edit its own

Re: [web2py] Doubt about multi-tenancy

2011-12-01 Thread Nik Go
with full access, who don't can count on filtered accesses. -- Vinicius Assef. On Thu, Dec 1, 2011 at 12:44 PM, Nik Go nikolai...@gmail.comjavascript:; wrote: look for roles, groups and memberships in the book On Thursday, December 1, 2011, Vinicius Assef wrote: I think I'll use

Re: [web2py] How to use SQLFORM.factory to define a check box field with a list of values?

2011-12-01 Thread Nik Go
IS_IN_DB(db, 'field.id', db.table._format, *multiple=True*) process the selection with onvalidation On Friday, December 2, 2011, Constantine Vasil wrote: I want to use SQLFORM.factory to define a check box field with a list of email addresses. When the user checks several, then to send an

Re: [web2py] [flashback] web2py logo and layout has changed one year ago...

2011-12-01 Thread Nik Go
+1. The name isn't so bad. We could all probably name other projects with worse names. The packaging, if that is really important to the community would help improve the image. Django's packaging is not suprising since it was originally developed internally in a news company - the media is

[web2py] [flashback] web2py logo and layout has changed one year ago...

2011-12-01 Thread Nik Go
+1. The name isn't so bad. We could all probably name other projects with worse names. The packaging, if that is really important to the community would help improve the image. Django's packaging is not suprising since it was originally developed internally in a news company - who knows more

Re: [web2py] How to use SQLFORM.factory to define a check box field with a list of values?

2011-12-01 Thread Nik Go
yourlist = [[u'John Doe', u'john_...@gmail.com'], [u'Mary Doe', u' mary_...@gmail.com']] and in your validator IS_IN_SET(yourlist, *multiple=True*) multiple to render checkboxes. On Friday, December 2, 2011, Kenneth Lundström wrote: You either have an multi select select item in the form or

Re: [web2py] Submit gutton in fields

2011-12-01 Thread Nik Go
a 'date' field implicitly gets the SQLFORM.widgets.date.widget. of course, being explicit helps make it clearer. On Friday, December 2, 2011, Rick wrote: Thanks! This is the final code: dayform = SQLFORM.factory( Field('thedate', 'date', label=T(''),

Re: [web2py] Using auth.settings.login_onaccept

2011-12-01 Thread Nik Go
auth.settings.login_onaccept=URL('afterlogin') #assuming it's in the default controller. does the same. For reference, the other callsbacks *(before) db io* are: auth.settings.login_onvalidation = [] auth.settings.register_onvalidation = [] auth.settings.profile_onvalidation = []

Re: [web2py] Best practices: When to use classes

2011-12-01 Thread Nik Go
Interesting. Do you have any recommended links to know more about this topic? On Friday, December 2, 2011, Bruno Rocha wrote: I have an opinion about that. For me the /models folders should be renamed to /scripts since it has scripts that are executed in every request. Going on this

[web2py] message application is compiled and cannot be installed

2011-11-30 Thread Nik Go
This is a trifle behavior that I experience every time I create a new simple application from the admin interface. For some reason, the new app gets compiled. I'm running Ubuntu 10.04 and running web2py from source. I need to press the remove compiled to proceed with editing the new app. I've

[web2py] Re: cannot login or register, missing links: login|register|lost password

2011-11-30 Thread Nik Go
Arghh... for some reason or another, I lost my: auth.define_tables() Thanks for the feedback Massimo. On Tuesday, November 29, 2011, Nik Go wrote: I've been deleting tables and playing around with various settings, so I don't know what I've done exactly but now my app lost the links

[web2py] displaying virtualfields in auth_user

2011-11-30 Thread Nik Go
: : 1 2 I know that I can customize the auth_table, but I don't want to mess up that table with optional information. Are virtual fields displayable? Comments are welcome, or suggestions for the proper of way of doing this. Nik

Re: [web2py] Error using LOAD in custom module

2011-11-29 Thread Nik Go
Nice! Are you planning to release the plugin? Let me know if you need any help testing it. :) On Saturday, November 26, 2011, monotasker wrote: I'm adapting the select_or_add widget from web2py slices so that it can be packaged as a plugin. In that process I'm moving the business logic from a

[web2py] cannot login or register, missing links: login|register|lost password

2011-11-29 Thread Nik Go
I've been deleting tables and playing around with various settings, so I don't know what I've done exactly but now my app lost the links for logging in, registering or resetting passwords. If I try to access the links manually (i.e. http://127.0.0.1:8000/s1/default/user/register) or do the same

[web2py] simulate a sub-domain from localhost?

2011-11-28 Thread Nik Go
Is it possible to run something like acme.127.0.0.1:8000? I've already set the common_field, and I want to do other local tests. I tried a different IP address, and it works but I lose access to the admin interface. This is my routes.py routers = dict( BASE = dict( domains = {

[web2py] multi-tenant app tables

2011-11-28 Thread Nik Go
I've already set the request_tenant field and each domain can only see the data they create. However, from the localhost, I can only see auth_user data, and data created from localhost. How do I allow access to all data from the localhost administrators? Also, how to I allow tenants to access to

Re: [web2py] Ajax and table rows.

2011-11-24 Thread Nik Go
Cliff, you alluded that this doesn't work, but it's actually a valid signature and should work: IS_IN_DB(db(db.categories.parent_table==request.args(0)),'categories.id',' categories.name') just as valid as the following signatures: IS_IN_DB(db(db.categories.parent_table==request.args(0)),

[web2py] table inheritance and defined requires

2011-11-23 Thread Nik Go
countries = {'ti': 'Timor Leste', 'vn': 'Vietnam','in': 'India','kr': 'Korea','cn': 'China'} db.define_table('address', Field('country'), Field('state'), Field('street_address')) db.address.country.requires=IS_IN_SET(countries, zero=None) db.define_table('personal_address', db.person,

Re: [web2py] SQLForm.grid - How do I use it properly?

2011-11-21 Thread Nik Go
try this : ,links = [lambda row: A( SPAN(_class='icon magnifier') ,'View Post' ,_class='button',_title='View Post' ,_href=URL(args=[view, db.person, row.id]) ) ] On Monday, November 21, 2011, Rahul wrote: Hi Johann, That is correct but I just wanted to

[web2py] partial date values in date fields

2011-11-20 Thread Nik Go
How is it possible to accept the following values in a date field: - -MM-DD - no problem - -MM (year and month only) - entered manually, accepted by IS_DATE(format=T('%Y-%m')) but the actual field contains -MM-*1. *Where 1 is added automatically by w2p. - (year

Re: [web2py] sqlform.grid

2011-11-03 Thread Nik Go
, 2011, Nik Go wrote: That's nice Peter. Good work! Thanks for sharing. On Wednesday, October 26, 2011, peter wrote: I am using and enjoying sqlform.grid. I have the latest version of web2py, however, I think that the css files within my application have become out of date. If I have ten

Re: [web2py] SQLFORM.grid collection of posts

2011-10-28 Thread Nik Go
It mentions: If you use jqueryui then the links are rendered as buttons. am still trying to find an answer about how to use icons for your custom buttons. On Friday, October 28, 2011, Cliff wrote: I'll try to keep an eye on it. On Oct 27, 1:47 pm, Massimo Di Pierro

Re: [web2py] sqlform.grid and represent vs. format

2011-10-28 Thread Nik Go
I experience the same unexpected behavior. On Friday, October 28, 2011, szimszon wrote: I have to tables db.define_table( 'wdirs', Field( 'name', type = 'string', requires = IS_NOT_EMPTY()), *(a)* *format='%(name)s %(id)s'* ) db.define_table( 'files',

Re: [web2py] SQLFORM.grid awesomeness and some questions

2011-10-28 Thread Nik Go
Johan, we're you able to specify your own icons for your custom buttons? If so, may I know how you did it? On Thursday, October 27, 2011, Johann Spies wrote: On 26 October 2011 19:15, Cliff cjk...@gmail.com javascript:_e({}, 'cvml', 'cjk...@gmail.com'); wrote: So you need a column on the

Re: [web2py] sqlform.grid

2011-10-28 Thread Nik Go
That's nice Peter. Good work! Thanks for sharing. On Wednesday, October 26, 2011, peter wrote: I am using and enjoying sqlform.grid. I have the latest version of web2py, however, I think that the css files within my application have become out of date. If I have ten pages, then the page

[web2py] Re: grid custom button icons

2011-10-19 Thread Nik Go
*bump* On Tuesday, October 18, 2011, Nik Go wrote: how do I specify the other icons available from the default icon sprite?

[web2py] _href and user signature

2011-10-19 Thread Nik Go
In a smartgrid, I'm trying to generate a clickable link to view another records. How do I pass the signature?

[web2py] grid custom button icons

2011-10-18 Thread Nik Go
how do I specify the other icons available from the default icon sprite?

[web2py] Re: date picker on v1.99

2011-10-09 Thread Nik Go
. On Oct 6, 8:48 pm, niknok nikolai...@gmail.com javascript:; wrote: The new date picker looks very good. Is there a way to input dates by typing it directly (similar to default behaviour in older versions), in addition to selecting dates thru the calendar interface? /r Nik P.S

[web2py] Re: question about preferred represenation and filtering

2011-10-09 Thread Nik Go
*bump* any inputs? On Friday, October 7, 2011, niknok wrote: ** I have a self-referencing table [1] with a defined format for representing a record in this fashion: Lastname, Firstname [-mm-dd]. In the father field, I expect it to display the drop-down list of persons as defined in

[web2py] Re: looking for suggestions - large number of selections

2011-10-09 Thread Nik Go
Yes, actually I'm playing with them right now. Thanks. My kung-fu is not very good, and I couldn't make them work the way I like it. That's why I'm asking, just in case, there are any other suggestions. For example, adding new entries on the fly ... On Monday, October 10, 2011, Bruno Rocha

[web2py] Re: checkboxes.widget rendering

2011-10-09 Thread Nik Go
Done. http://code.google.com/p/web2py/issues/detail?id=463 Thanks. On Monday, October 10, 2011, Massimo Di Pierro wrote: Please open a ticket. On Oct 9, 3:39 am, niknok nikolai...@gmail.com javascript:; wrote: When using checkboxes.widget the expected selection box disappears, instead a

[web2py] Re: why is my database zero-length after commiting a record

2011-03-19 Thread Nik Klever
your database is located in the folder ../web2py/applications/tmp/ databases/ On 19 Mrz., 00:18, metaperl scheme...@gmail.com wrote: web2py shell transcript of session resulting in no records in sqlite storage.db file after doing an insert with no error: [thequietcenter@ubuntu

[web2py] Re: why is my database zero-length after commiting a record

2011-03-19 Thread Nik Klever
your database is located in the folder ../web2py/applications/tmp/ databases/ On 19 Mrz., 00:18, metaperl scheme...@gmail.com wrote: web2py shell transcript of session resulting in no records in sqlite storage.db file after doing an insert with no error: [thequietcenter@ubuntu

[web2py] Re: Proposals for New Tagline

2011-03-15 Thread Nik
Here's my tounge in cheek proposal: Web2py: puts the fun back in coding -- and extra time for playing with taglines ... On Mar 15, 7:04 pm, villas villa...@gmail.com wrote: The web2py tagline is currently: 'Enterprise Web Framework'. Massimo agrees that this might be improved and this thread

[web2py] Re: filtering selection list

2011-03-12 Thread Nik
' and then hit submit, I will get an error message and the 'v' list gets populated with the right records. Is there a way to access the user selection from a form that hasn't been submitted yet? I think I can only get request.vars.t after the user hits the submit button. /r Nik On Mar 11, 12:11 am, Massimo Di

[web2py] filtering selection list

2011-03-09 Thread Nik
i need to validate a field based on an external read-only database (i call it gdb) there are four tables that are related by their own codes gdb.r_table.code gdb.p_table.code gdb.t_table.code gdb.v_table.code I have no use for the the id field of each table. Each table has, among others:

[web2py] CascadingSelect class (slice 85)

2011-03-09 Thread Nik
Found this slice earlier. My objective is to display a filtered lists of villages based on user's previous selection. I get the error type 'exceptions.KeyError'('village') after I cloned CascadingSelect class from slice 85[1] for use in the tables[2]. the difference here is that my keys are

Re: [web2py] Re: Just a typo in change log.

2011-03-06 Thread Nik Go
compatibility promise yet) IS_EQUAL_TO zh-tw and better internationalization page, thanks Daniel Lin and Iceberg better crud.search, thanks MrFreeze Rocket interfaces, thanks Nik Klever db.table.field.uploadseparate=True, thanks Gyuris SCOPE_IDENITY for MSSQL, thanks Jose fixed email attachment issue, thanks

[web2py:34893] Using web2py with jython

2009-11-08 Thread Nik
Hi folks, For testing web2py with jython I have started it by executing jython web2py.py and got the following error message: == saturn:web2py_1.71.2 nik$ jython web2py.py WARNING:root:no file locking WARNING:root:unable to import

[web2py:30202] jpolite and web2py for beginners

2009-09-05 Thread Nik
Could you recommend any tutorials and resources for someone who would like to use jpolite with 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:29861] Re: YAL - yet another logo

2009-09-02 Thread Nik Go
Like Richard's opinion, I like snake #1's expression as well and would vote to have a new rendering of that snake posing similar to image #4 where it is intertwining with web and py. Web2Py is a developer's tool, hence a crazy logo is fine as long as it represents the ideas the

[web2py:24757] web2py v 1.64.3

2009-06-22 Thread Nik
Multiple select not working. Being redendered as drop-down boxes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to web2py@googlegroups.com To

[web2py:24399] multiple OR conditions in a query

2009-06-17 Thread Nik Go
I was trying to do the following: for n in g[:]: query += ' | ' if bool(query) else '' query += (db.contacts.membership.like('% + n + %')) rows=db(query).select(db.contacts.number) but couldn't get it to work so I resorted to executing the query using SQLexecute

[web2py:22872] Re: One question about version 1.63

2009-05-29 Thread Nik Go
I'm not sure if it's the same error but I got the same problem. I unpacked the 1.63 to an existing web2py (v1.62.3) directory. Once I get to the default index. Clicking on administrative interface generates an error ticket but clicking on the ticket only causes it to generate another ticket. ad

[web2py:22657] accessing databases outside the web2py directories

2009-05-26 Thread Nik
Is there a way to access a database outside the web2py directory? How are they addressed? I need access to an sqlite database in /var/opt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group.

[web2py:22667] ValueError: invalid literal for int() with base 10: ''

2009-05-26 Thread Nik
Traceback (most recent call last): File /home/ern/web2py/gluon/restricted.py, line 107, in restricted exec ccode in environment File /home/ern/web2py/applications/smb/views/appadmin.html, line 122, in module File /home/ern/web2py/gluon/sqlhtml.py, line 623, in __init__ for (rc,

[web2py:22480] weird HTML rendering

2009-05-23 Thread Nik
Is there any reason why bold and italic typefaces can't seem render views correctly when underline, strikeout or teletype works fine? Same goes for font face, color and size. bBold/b iItalics/a uUnderline/u sStrikeout/s ttTeletype/tt font size=16 face=verdana color=greenThis is some text!/font