[web2py] Stop menu from collapsing

2013-06-26 Thread James Burke
Hi, Is it possible to stop the menu from collapsing into a button when the window width is resized smaller? Or do I have to start from scratch. Cheers James -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this grou

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Jason (spot) Brower
We could also minify it so people would be nuts to try to change it. :) On Thu, Jun 27, 2013 at 9:42 AM, Jason (spot) Brower wrote: > I wonder if we should have a comment in the file that they shouldn't > change this file as it will be overwritten. > > > > On Thu, Jun 27, 2013 at 9:38 AM, Massi

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Jason (spot) Brower
I wonder if we should have a comment in the file that they shouldn't change this file as it will be overwritten. On Thu, Jun 27, 2013 at 9:38 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > The problem is that an old app can be installed after an upgrade and it > would not work bec

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Massimo Di Pierro
The problem is that an old app can be installed after an upgrade and it would not work because it would still come with the old web2py.js. I do not think web2py.js can be update automatically nor it should. On Wednesday, 26 June 2013 14:35:05 UTC-5, LightDot wrote: > > +1 for considering web2p

[web2py] Re: Adding custom operators to DAL

2013-06-26 Thread Massimo Di Pierro
I do not know either why it was deleted. Google did it not, us. Sorry. On Wednesday, 26 June 2013 10:53:34 UTC-5, Calvin wrote: > > Not sure why it says my previous reply has been deleted but here it is > again: > > Hi Massimo > > > I am not familiar with the method you suggested but when I tried

[web2py] Re: Auth registration adding a registration key with requires_approval disabled

2013-06-26 Thread Massimo Di Pierro
Which web2py version? On Wednesday, 26 June 2013 11:16:11 UTC-5, Isaac Dontje Lindell wrote: > > I have this in my db.py model: > > ## configure auth policy > auth.settings.registration_requires_verification = False > auth.settings.registration_requires_approval = False > auth.settings.reset_passw

[web2py] Re: Builtwith.com now recognizes web2py as a framework.

2013-06-26 Thread Massimo Di Pierro
Thank you! How does one report more sites? Or they on;y discover them automatically. In this case how to they determine that a site is powered by web2py? On Wednesday, 26 June 2013 11:05:33 UTC-5, pythONtherocks wrote: > > Hello all, > I tried to get Gary from Builtwith.com to identify web2py as

[web2py] Re: Select table in drop down import the file and edit

2013-06-26 Thread Rohitraj Sharma
On Thursday, 27 June 2013 10:52:46 UTC+5:30, Rohitraj Sharma wrote: > > This is for fetching data from database > > def im(): > task=db(db.mydb).select() > return dict(rows=task) > > > > For importing file from database > def import_table(): > form = SQLFORM.factory(Field('table',requires=IS

[web2py] Re: Select table in drop down import the file and edit

2013-06-26 Thread Rohitraj Sharma
The fallowing are python file not php. By mistake i write php On Thursday, 27 June 2013 10:52:46 UTC+5:30, Rohitraj Sharma wrote: > > This is for fetching data from database > > def im(): > task=db(db.mydb).select() > return dict(rows=task) > > > > For importing file from database > def import_ta

[web2py] Re: Select table in drop down import the file and edit

2013-06-26 Thread Rohitraj Sharma
This is for fetching data from database def im(): task=db(db.mydb).select() return dict(rows=task) For importing file from database def import_table(): form = SQLFORM.factory(Field('table',requires=IS_IN_SET(db.tables)), Field('csvfile','upload',

[web2py] Re: Select table in drop down import the file and edit

2013-06-26 Thread Rohitraj Sharma
Hi Anthony I am not able to get your question. I have one form controller with one view. http://127.0.0.1:8000/tracker/default/form when i run this url its show 404 error. Actually what is my requirement, I have one csv file. which i have to upload. Before saving the file in database, i want t

[web2py] Re: JQuery Issue

2013-06-26 Thread Jim S
Try this, you need brackets for your if statements in javascript. jQuery(document).ready(function(){ jQuery('#no_table_mothers_name__row').hide(); jQuery('#is_newborn').change(function(){ if(jQuery('#is_newborn').attr('checked')) { jQuery('#no_table_mothers_name__row').show(); } else

[web2py] JQuery Issue

2013-06-26 Thread Tom Russell
I cannot seem to get some jquery code to work right and not sure why. Basically when I click a checkbox I want another field to appear below that one. This is my form code: @auth.requires_login() def register_patient(): mark_not_empty(db.patient) mark_not_empty(db.emergencycontacts) m

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Niphlod
just to confirm, ANY javascript piece of code relying on web2py.js functions will still work as intended. At the end of the new web2py.js there is a "compatibility layer" that remaps old function names to the new ones. If someone added his own function, e.g. at the end of "old" web2py.js just

Re: [web2py] Help with WebClient and Pytest

2013-06-26 Thread Ian W. Scott
Thanks, that looks really promising. I'll let you know what I come up with once I've had a chance to look through the repo. Ian On Wednesday, June 26, 2013 6:21:55 PM UTC-4, viniciusban wrote: > > See if something in https://github.com/viniciusban/web2py.test helps you. > > On Wed, Jun 26, 2013

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Vinicius Assef
It sounds good. On Wed, Jun 26, 2013 at 6:04 PM, villas wrote: > I was just thinking that some users might have their own functions mixed > together with web2py functions in web2py.js and might not wish to extricate > their work and save it elsewhere. > > To overcome that, make a completely diff

Re: [web2py] Help with WebClient and Pytest

2013-06-26 Thread Vinicius Assef
See if something in https://github.com/viniciusban/web2py.test helps you. On Wed, Jun 26, 2013 at 3:21 PM, Ian W. Scott wrote: > I'm trying to use WebClient in a pytest suite and getting an error that I > don't understand. I try to connect like this: > > client = WebClient('http://127.0.0.1:8

[web2py] Re: feeding python string object to d3.js csv

2013-06-26 Thread Anthony
On Wednesday, June 26, 2013 5:21:16 PM UTC-4, greaneym wrote: > yes, thanks, that is what I have been doing, and the web error console > shows when d3 can't read the string. I didn't compile a list of the errors, > but I intend to keep trying with the csv inputs and will post something > when i

[web2py] Re: I cannot get track_changes to work

2013-06-26 Thread Ian W. Scott
I just have this snippet as the first code (after imports) in my models/db.py: from gluon.custom_import import track_changes track_changes(True) I don't use the condition that is recommended: if request.is_local: I seem to remember having trouble when that condition was present. So I just re

[web2py] I cannot get track_changes to work

2013-06-26 Thread jc
I have a model file which contains from gluon.custom_import import track_changes; track_changes(True) When I change a module file in the applications/app/modules directory, the changes don't appear. I have to kill and restart web2py to get the changes. Seems a simple recipe to follow from Chapt

[web2py] Re: feeding python string object to d3.js csv

2013-06-26 Thread greaneym
yes, thanks, that is what I have been doing, and the web error console shows when d3 can't read the string. I didn't compile a list of the errors, but I intend to keep trying with the csv inputs and will post something when it works. Thanks for all your help. margaret On Wednesday, June 26, 2

[web2py] Re: database disk image is malformed

2013-06-26 Thread Niphlod
whoopsie. If that is indeed web2py's sqlite database, follow these steps http://techblog.dorogin.com/2011/05/sqliteexception-database-disk-image-is.html On Wednesday, June 26, 2013 11:01:47 PM UTC+2, Niphlod wrote: > > sure that is web2py's database ? > That message is usually outputted when yum

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread villas
I was just thinking that some users might have their own functions mixed together with web2py functions in web2py.js and might not wish to extricate their work and save it elsewhere. To overcome that, make a completely different file to be the framework file. I suggested web2py_framework.js b

[web2py] Re: database disk image is malformed

2013-06-26 Thread Niphlod
sure that is web2py's database ? That message is usually outputted when yum (the package manager) database has something wrong in it. On Wednesday, June 26, 2013 10:53:25 PM UTC+2, greenpoise wrote: > > The DB still works but I can see that in my terminal. Just noticed it. Is > this normal? --

[web2py] database disk image is malformed

2013-06-26 Thread greenpoise
The DB still works but I can see that in my terminal. Just noticed it. Is this normal? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@

[web2py] Re: Flat text files as data source for web2py

2013-06-26 Thread Ian W. Scott
Ah, I get it. That makes sense. On Wednesday, June 26, 2013 4:32:50 PM UTC-4, Niphlod wrote: > > > > On Wednesday, June 26, 2013 7:07:33 PM UTC+2, Ian W. Scott wrote: >> >> Thanks Niphlod. I'm intrigued by the diffbook project, so I'll take a >> look at your github repo. My main interest is in st

[web2py] Re: Flat text files as data source for web2py

2013-06-26 Thread Niphlod
On Wednesday, June 26, 2013 7:07:33 PM UTC+2, Ian W. Scott wrote: > > Thanks Niphlod. I'm intrigued by the diffbook project, so I'll take a look > at your github repo. My main interest is in streamlining my workflow (not > just webdev, but my academic research and teaching as well) around a lar

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Anthony
> How about extending this definition and requirement to appadmin..? > I don't think any framework functionality depends on appadmin, so you should be able to keep an old appadmin if you like, but in both the documentation and the admin interface, we should include a reminder to update appadm

[web2py] Re: feeding python string object to d3.js csv

2013-06-26 Thread Anthony
In your browser developer tools, can you watch the ajax request and see what web2py is returning? On Wednesday, June 26, 2013 4:03:47 PM UTC-4, greaneym wrote: > > This addition of quotes did nothing for me. Somehow the d3 does not load > the url because I get a d3 error that there is no data fo

[web2py] Re: feeding python string object to d3.js csv

2013-06-26 Thread greaneym
This addition of quotes did nothing for me. Somehow the d3 does not load the url because I get a d3 error that there is no data found. I can get json to work with this, json_data = sj.dumps(pt_data) then in the view, var jdata = {{=XML(response.json(pt_data))}} g = new Dygraph( document.

[web2py] Re: feeding python string object to d3.js csv

2013-06-26 Thread Andrew W
Not sure if its faster, but you'll write less js code if you use json, and it makes sense to use the controller to deliver the data in the expected format that is directly usable. Less js coding works for me! Margaret, as Anthony suggests, try the json approach. I can post an example when I'm

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread LightDot
+1 for considering web2py.js as a part of web2py framework, so users should be requested to update it along with the framework. How about extending this definition and requirement to appadmin..? Also - what happens with old apps that have ancient jquery.js? Will new web2py.js cause a chain of u

[web2py] Is the "mobile" version of the admin interface not working for you?

2013-06-26 Thread Jason (spot) Brower
I have the latest web2py and it seems the jquery.mobile interface is not working. Do you get a similar result? BR, Jason -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, sen

[web2py] Re: auth(), check if name and password from login is in the database

2013-06-26 Thread royski
thx for the quick answer Anthony, you save my day -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options,

[web2py] Re: auth(), check if name and password from login is in the database

2013-06-26 Thread Anthony
> > def index(): > user_auth = auth.login() > user_auth.add_button('register me', URL('register_user')) > Right after the above, just do: if auth.user: session.user_name = auth.user.username auth.login() not only creates the login form, but it also processes it and th

[web2py] Help with WebClient and Pytest

2013-06-26 Thread Ian W. Scott
I'm trying to use WebClient in a pytest suite and getting an error that I don't understand. I try to connect like this: client = WebClient('http://127.0.0.1:8000/paideia/default/', postbacks= True) client.get('index') But client.get('index') throws an error. The error arises in urllib2.p

Re: [web2py] Appointment Manager

2013-06-26 Thread Richard Vézina
:) On Wed, Jun 26, 2013 at 1:54 PM, Tom Russell wrote: > Ok thank you. I will update the code for everyone once I have it working. > > > > > On Wed, Jun 26, 2013 at 1:52 PM, Richard Vézina < > ml.richard.vez...@gmail.com> wrote: > >> I think I cover the week, day, month stuff in your last mail.

Re: [web2py] compute try to understand something

2013-06-26 Thread Richard Vézina
Ok, I think I solve my issues... I had many issues : First has you said the compute field were not receive all it needs. I solve this one like this : form.process().accepted: for r in session.rows: row = db[request.args(0)](r.id) row.update_record(review='TRUE', other_fiel

Re: [web2py] Appointment Manager

2013-06-26 Thread Tom Russell
Ok thank you. I will update the code for everyone once I have it working. On Wed, Jun 26, 2013 at 1:52 PM, Richard Vézina wrote: > I think I cover the week, day, month stuff in your last mail... But it > just a matter of initialize the plugin has you want... Just read the plugin > doc about t

Re: [web2py] Appointment Manager

2013-06-26 Thread Richard Vézina
I think I cover the week, day, month stuff in your last mail... But it just a matter of initialize the plugin has you want... Just read the plugin doc about that... Richard On Wed, Jun 26, 2013 at 1:51 PM, Richard Vézina wrote: > The memory leak was only perceptible with large dataset... Each

Re: [web2py] Appointment Manager

2013-06-26 Thread Richard Vézina
The memory leak was only perceptible with large dataset... Each time the calendar view is call there is a memory build up until saturation... So I gues that it could happen when web2py is not restarted during a certain periode and calendar view is call many many time with a smaller dataset... You

[web2py] Builtwith.com now recognizes web2py as a framework.

2013-06-26 Thread pythONtherocks
Hello all, I tried to get Gary from Builtwith.com to identify web2py as a framework in their results. After one month's wait "to refresh the cache", it is now identifying any website using web2py and reports them as such (see screen shot). My 2 cents worth of contribution to this great framewor

[web2py] Auth registration adding a registration key with requires_approval disabled

2013-06-26 Thread Isaac Dontje Lindell
I have this in my db.py model: ## configure auth policy auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval = False auth.settings.reset_password_requires_verification = True If I register for the application (at %app%/default/user/register), it go

[web2py] auth(), check if name and password from login is in the database

2013-06-26 Thread royski
hello, i am beginner in web2py, and my problem is the login this is the controller: def index(): user_auth = auth.login() user_auth.add_button('register me', URL('register_user')) #if auth.login():on this point i want authentication if the username and password are allre

[web2py] Fields.Virtual says that the column does not exist in 2.5.1 during record edit

2013-06-26 Thread Tito Garrido
Hi Folks, After update to 2.5.1 I got this message when I try to update a form with SQLFORM: 'Row' object has no attribute 'bom' db.define_table('video', Field('titulo', requires=IS_NOT_EMPTY(), unique=True), Field('tag', 'list:reference tag'), Field('slug', requires=[IS_NOT_EMPTY(),

Re: [web2py] sqlform.factory widget in field problem

2013-06-26 Thread Tom Russell
Another solution can be: {{extend 'layout.html'}} Education CV {{=education_form}} Student {{=student_form}} School {{=school_form}} On Wed, Jun 26, 2013 at 12:47 PM, Tom Russell wrote: > Saved mine too, got it originally from > http://www.web2pyslices.com/slice/show/1457/adding-fieldset-a

Re: [web2py] Appointment Manager

2013-06-26 Thread Tom Russell
Well I updated to the latest fullcalendar and it seems to work good, but do not know if the memory leak still exists. By any chance could you share what you did? Also, any chance you added views for week/day in it? You can see in the example here http://arshaw.com/fullcalendar/ that it has buttons

Re: [web2py] Appointment Manager

2013-06-26 Thread Richard Vézina
Letting FullCalendar consume the json feed... On Wed, Jun 26, 2013 at 1:21 PM, Richard Vézina wrote: > Take care, I don't know if it has been solve, but I found a memory leak > in this app caused by the way FullCalendar is integrated... I solve the > issue for my own need by using the json fee

Re: [web2py] Appointment Manager

2013-06-26 Thread Richard Vézina
Take care, I don't know if it has been solve, but I found a memory leak in this app caused by the way FullCalendar is integrated... I solve the issue for my own need by using the json feed feature of FullCalendar doing a simple json feed function returning a well formatted json object with simplej

[web2py] Re: Flat text files as data source for web2py

2013-06-26 Thread Ian W. Scott
Thanks Niphlod. I'm intrigued by the diffbook project, so I'll take a look at your github repo. My main interest is in streamlining my workflow (not just webdev, but my academic research and teaching as well) around a large folder of flat files that, when changed, will trigger other events (like

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Vinicius Assef
+1 On Wed, Jun 26, 2013 at 1:46 PM, Anthony wrote: > On Wednesday, June 26, 2013 11:33:59 AM UTC-4, Massimo Di Pierro wrote: >> >> Are you suggested web2py.js should be served by a spacial action and not >> being part of the applications? > > > Interesting idea. > > -- > > --- > You received thi

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Anthony
On Wednesday, June 26, 2013 11:33:59 AM UTC-4, Massimo Di Pierro wrote: > Are you suggested web2py.js should be served by a spacial action and not > being part of the applications? > Interesting idea. -- --- You received this message because you are subscribed to the Google Groups "web2py-u

[web2py] Appointment Manager

2013-06-26 Thread Tom Russell
I am using the appointment manager from https://github.com/mdipierro/web2py-appliances/tree/master/AppointmentManager . I have tweaked it to my needs and works well so far but there is an issue trying to use SQLFORM.grid. I get an error () takes exactly 1 argument (2 given) by doing this: def

[web2py] Re: Adding custom operators to DAL

2013-06-26 Thread Calvin
Thanks Anthony and Massimo. It all works now! On Thursday, 27 June 2013 00:42:26 UTC+8, Anthony wrote: > > from gluon.dal import Expression > > Anthony > > On Wednesday, June 26, 2013 11:53:34 AM UTC-4, Calvin wrote: >> >> Not sure why it says my previous reply has been deleted but here it is >>

Re: [web2py] sqlform.factory widget in field problem

2013-06-26 Thread Tom Russell
Saved mine too, got it originally from http://www.web2pyslices.com/slice/show/1457/adding-fieldset-and-legend-to-forms On Wed, Jun 26, 2013 at 12:39 PM, António Ramos wrote: > That is a very clever solution. > Saved my day. > > Thank you > > > > > 2013/6/26 Tom Russell > >> form[0]=TABLE( >>

[web2py] Re: Adding custom operators to DAL

2013-06-26 Thread Anthony
from gluon.dal import Expression Anthony On Wednesday, June 26, 2013 11:53:34 AM UTC-4, Calvin wrote: > > Not sure why it says my previous reply has been deleted but here it is > again: > > Hi Massimo > > > I am not familiar with the method you suggested but when I tried it, I got > the followi

Re: [web2py] sqlform.factory widget in field problem

2013-06-26 Thread António Ramos
That is a very clever solution. Saved my day. Thank you 2013/6/26 Tom Russell > form[0]=TABLE( > FIELDSET(TAG.legend("Patient Info"),TABLE(fs0),_id="register0"), > FIELDSET(TAG.legend("Emergency Contact > Info"),TABLE(fs1),_id="register1"), > FIELDSET(TAG.legend("Dependents"),TAB

[web2py] Ref another table in another app

2013-06-26 Thread Tom Russell
How would I do this: I need to create an appointment for a patient so from my list of patients i have a link to call another app to do the appointment. I have the link set so it looks like this: links = [lambda row: A(T('Create Appointment'),_href=URL("AppointmentManager","default", "appointment_

Re: [web2py] sqlform.factory widget in field problem

2013-06-26 Thread Tom Russell
To group inside a field I do something like this with 3 different tables: form=SQLFORM.factory(db.patient, db.emergencycontacts, db.dependents) fs0=form[0][:26] #patient rows fs1=form[0][26:37] #emergency contacts fs2=form[0][37:41] #dependents fs3=form[0][-1] # submi

[web2py] sqlform.factory widget in field problem

2013-06-26 Thread António Ramos
Just drafting something but here is the problem My context: I have 3 tables table form table steps table fields A form can have many steps a step can have many fields This way i can have one form with 3 steps, each with some fields and another form with 10 steps , each with some more fields. i

[web2py] Re: Adding custom operators to DAL

2013-06-26 Thread Calvin
Not sure why it says my previous reply has been deleted but here it is again: Hi Massimo I am not familiar with the method you suggested but when I tried it, I got the following error: print db(Expression(db,"business_view.loc && ST_MakeEnvelope(42.179139323652443, 141.20906066894531, 42.30

[web2py] Add button to smartgrid?

2013-06-26 Thread Tom Russell
I need to add a button to the smartgrid but not like doing create=True because I have a form factory that has 2 other tables associated with the one. I know in html I can simply add a line for a button but since I am not using html for this how would I add a button to that page to reference my own

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Massimo Di Pierro
Are you suggested web2py.js should be served by a spacial action and not being part of the applications? On Wednesday, 26 June 2013 10:21:58 UTC-5, villas wrote: > > +1 Anthony > > These days any sophisticated web framework must surely include some JS. > The framework must be able to guarantee

[web2py] Re: Can view, but can't edit files

2013-06-26 Thread Woody
Let me clarify. The server is a headless system (actually, a small plug computer). So, I can access it like this: Local LAN PC#1: 192.168.xxx.111 -> Server: 192.168.xxx.222 . This works ok. Now, when I ssh tunnel to PC#1 or to Server, I can go to URL: https://192.168.xxx.222/admin or https:/

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread villas
+1 Anthony These days any sophisticated web framework must surely include some JS. The framework must be able to guarantee which functions will be available client-side. If we accept that at least one JS must be part of the framework, then we can choose whether this should be web2py.js. Perh

Re: [web2py] Re: SQLFORM.smartgrid

2013-06-26 Thread Tom Russell
That is awesome, I did not know that! Just when you think its more complicated than not, its easy. So how do I reference that from the dependents table so that in my smart grid it shows the patients name associated with the dependent? Thanks On Wed, Jun 26, 2013 at 10:43 AM, Anthony wrote: >

Re: [web2py] Re: SQLFORM.smartgrid

2013-06-26 Thread Anthony
db.define_table('patient', ..., format='%(first_name)s %(last_name)s') "format" can also be a function that takes a row object and generates the desired output. The "format" attribute is used to create a default "represent" attribute for any reference fields that reference this table.

Re: [web2py] Re: SQLFORM.smartgrid

2013-06-26 Thread Tom Russell
db.define_table('patient', #db.patient.id.readable=False # Since we do not want to expose the id field on the grid Field('alternatepid', label='Alternate PID', writable=False, readable=False), Field('first_name', label='First Name', requires=IS_NOT_EMPTY()), Field('middle_name', lab

[web2py] Storing attachments

2013-06-26 Thread Domagoj Kovač
Hi, I have a question: if request.env.request_method == "POST": attachments = request.vars.attachments if len(attachments) > 0: for attachment in attachments: image = db.entry_value.upload_value.store(attachment. file, attachment.

[web2py] Re: SQLFORM.smartgrid

2013-06-26 Thread Anthony
Can you show your three table definitions? The simplest method is just to specify a "format" attribute for db.patient, which will be used by any referencing fields. Anthony On Wednesday, June 26, 2013 1:06:03 AM UTC-4, Tom Russell wrote: > > Another question on the smartgrid. > > I have linked

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Anthony
On Wednesday, June 26, 2013 9:19:23 AM UTC-4, Massimo Di Pierro wrote: > That is dangerous. What if people rely on an older version of have edited > it? That's the point. web2py.js is not like the rest of the scaffold (i.e., optional and customizable) -- it interacts with the core framework, s

Re: [web2py] Re: SQLFORM.smartgrid

2013-06-26 Thread Tom Russell
Apparently something is not correct as I cannot figure out what the syntax erro is based on the example you gave here. This is what I have: Field('patient name', db.linked patient, represent=lambda c, row:first_name of patient(c), requires=IS_IN_DB(db,'field.id','%(patient)s')), On Wed, Jun 26,

Re: [web2py] about routes.py

2013-06-26 Thread Jonathan Lundell
On 26 Jun 2013, at 6:33 AM, Martin Weissenboeck wrote: > I have tried routes.py with the builtin server - works fine. > Afterward I went to another computer, which runs Apache. > I want > https://contr1.mydomain.com to route to https://myapp.mydomain.com/contr1 > https://contr2.mydomain.com to r

[web2py] Re: Select table in drop down import the file and edit

2013-06-26 Thread Anthony
Using the browser developer tools, what URL gets requested when the ajax call is made? On Wednesday, June 26, 2013 2:44:18 AM UTC-4, Rohitraj Sharma wrote: > > I want to select some particular table from database in a drop dowan. > Then import csv file. edit that file and update. . Can Any one

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Niphlod
On Wednesday, June 26, 2013 3:19:23 PM UTC+2, Massimo Di Pierro wrote: > > Moreover, what if an old app is installed after an upgrade? > > it won't work, plain and simple. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscrib

[web2py] about routes.py

2013-06-26 Thread Martin Weissenboeck
I have tried routes.py with the builtin server - works fine. Afterward I went to another computer, which runs Apache. I want - https://contr1.mydomain.com to route to https://myapp.mydomain.com/contr1 - https://contr2.mydomain.com to route to https://myapp.mydomain.com/contr2 - http

[web2py] Web2py via cgi on shared hosting

2013-06-26 Thread sebastian . koslitz
Hi there, I'd like to get web2py running on a shared hosting environment. Referred to the official Docs, I've created an folder "htdocs". In this the folder web2py contains the whole web2py framework (inc

Re: [web2py] E-commerce solution

2013-06-26 Thread paulo . sobrinho33
Hi, I found a project called eStore (https://code.google.com/p/web2py-estore/), but it seems that has not being updated for a while and there are some important features missing. Dear all, Is there any other web2py ecommerce project? Learnt also that http://rockiger.com was developed with web

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Massimo Di Pierro
That is dangerous. What if people rely on an older version of have edited it? I think it is part of the specs that web2py upgrades do not touch the apps. Moreover, what if an old app is installed after an upgrade? On Wednesday, 26 June 2013 07:10:16 UTC-5, Anthony wrote: > > More generally, we

[web2py] Re: Catch-all function in controller

2013-06-26 Thread Massimo Di Pierro
You must use routes.py to redirect /app/controller/$anything to /app/controller/common/$anything On Wednesday, 26 June 2013 06:30:46 UTC-5, Daniel Gonzalez wrote: > > Hi, > > I have an api.py controller which is the interface to my restful api. > Currently I have to do the following to extend my

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Anthony
More generally, we should probably make it more clear that web2py.js is properly a part of the framework and must be upgraded whenever the framework is upgraded (this could be mentioned here, and maybe a reminder message could be shown in

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Niphlod
ETA is more or less 1 year on this :-P However, yes, it will be promply highlighted (and maybe in the far distant future web2py.js will be overwritten automatically ). On Wednesday, June 26, 2013 1:36:07 PM UTC+2, viniciusban wrote: > > I think this is a note that must be highlighted before re

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Vinicius Assef
I think this is a note that must be highlighted before releasing as stable, right? On Wed, Jun 26, 2013 at 7:14 AM, Massimo DiPierro wrote: > There is a major change upcoming in web2py 2.6 (which can be tested in trunk). > > The change involves a better rewrite of web2py.js agreed upon the develo

[web2py] Catch-all function in controller

2013-06-26 Thread Daniel Gonzalez
Hi, I have an api.py module which is the interface to my restful api. Currently I have to do the following to extend my api: def common(obj): response.view = 'generic.json' response.headers['Content-Type'] = CONTENT_TYPE_JSON def GET(*args,**vars): return api_router(API_GET

[web2py] web2py cgi shared hosting problem

2013-06-26 Thread sebastian . koslitz
Hi there! I've some issues deploying web2py to a shared hosting environment. I created an application within the web2py environment. Referred to official Docs I put the whole web2py folder in a folder ca

[web2py] Re: Understanding Checkboxes widget

2013-06-26 Thread greenpoise
Fixed the typos and this is the part where I get stuck. It prompts me the data validation error "Value not in database". I see the values in the checkboxes. db.define_table('finish', >> Field('name'), >> Field('abbr')) >> db.finish.name.requires = IS_NOT_IN_DB(db,db.finish.name) >> db

[web2py] Re: Adding custom operators to DAL

2013-06-26 Thread Calvin
Hi Massimo I am not familiar with the method you suggested but when I tried it, I got the following error: print db(Expression(db,"business_view.loc && ST_MakeEnvelope(42.179139323652443, 141.20906066894531, 42.307520083522473, 143.34776306152344)")).select().as_list() NameError: global name '

[web2py] Re: Encrypting/decrypting db values

2013-06-26 Thread lesssugar
Yes, I inspected the data with psql - they're indeed encrypted. Again, thanks. On Wednesday, June 26, 2013 12:35:54 PM UTC+2, Niphlod wrote: > > if you're inspecting your db with web2py then of course you have all in > clear that's the whole point of the filter_in and filter_out methods, >

Re: [web2py] Multiple files upload

2013-06-26 Thread Domagoj Kovač
I have one more question, is it possible to disable this uploading feature? I thought i can add attachment field manually in my form, not trought SQLFORM.factory, but if i add this field manually, i still get an error. This basically means that if i want to have multiple uploads the way i imagi

Re: [web2py] Multiple files upload

2013-06-26 Thread Domagoj Kovač
Ok, thanks. I would be great if upload would be mapped to list. On Wednesday, June 26, 2013 12:34:38 PM UTC+2, Niphlod wrote: > > just handle it outside web2py. Building a form with SQLFORM changing the > widget at your will is not going to work. > it's like you asking for a checkbox field but u

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Ovidio Marinho
I'm testing Ovidio Marinho Falcao Neto ITJP.NET.BR ovidio...@gmail.com 83 8826 9088 - Oi 83 9336 3782 - Claro Brasil 2013/6/26 Massimo DiPierro > There is a major change upcoming in web2py 2.

[web2py] Re: Encrypting/decrypting db values

2013-06-26 Thread Niphlod
if you're inspecting your db with web2py then of course you have all in clear that's the whole point of the filter_in and filter_out methods, being "transparent". Try to inspect your database with an external tool instead. On Wednesday, June 26, 2013 12:19:24 PM UTC+2, lesssugar wrote: > >

Re: [web2py] Multiple files upload

2013-06-26 Thread Niphlod
just handle it outside web2py. Building a form with SQLFORM changing the widget at your will is not going to work. it's like you asking for a checkbox field but using a textarea to do it.it doesn't make any sense... Maybe we'll have in the future an upload mapped to a list:string (sounds ab

Re: [web2py] Multiple files upload

2013-06-26 Thread Domagoj Kovač
Hi Niphlod, I reviewed your code, in your test method you have: form = SQLFORM.factory( Field('an_integer', 'integer'), Field('upload_1', 'upload', uploadfolder=upf), Field('upload_2', 'upload', uploadfolder=upf), table_name='an_entry' ) i don't want two f

[web2py] Re: Encrypting/decrypting db values

2013-06-26 Thread lesssugar
@Niphlod, Thanks very much for your solution. Implemented it, it works -- no errors when inserting/updating data. However, one thing I don't fully get: the data I store using the encryption are displayed as normal strings in the database. I'm not very familiar with encryption specifics but isn

[web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread Massimo DiPierro
There is a major change upcoming in web2py 2.6 (which can be tested in trunk). The change involves a better rewrite of web2py.js agreed upon the developers and implemented by Niphlod. Because of this change applications which use components will break unless you upgrade the old web2py.js with

Re: [web2py] E-commerce solution

2013-06-26 Thread Jason (spot) Brower
I am thinking of building one as part of my business. Just starting to look if there are others in Web2py as that's what we use for business. :) BR, Jason On Wed, Jun 26, 2013 at 1:53 AM, wrote: > Hello guys, > > I am new here. > > Is there a full e-commerce web2py app like Sachmo, LFS, Cartr

[web2py] Article: How fast can we make interpreted Python?

2013-06-26 Thread David Marko
http://www.phi-node.com/2013/06/how-fast-can-we-make-interpreted-python.html https://github.com/rjpower/falcon -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email

[web2py] Re: Adding custom operators to DAL

2013-06-26 Thread Massimo Di Pierro
Can you show an example of how you plan to use something like this. I believe there is already a method db(Expression(db," ... raw query ...")).select() perhaps I do not understand. On Tuesday, 25 June 2013 22:36:45 UTC-5, Calvin wrote: > > I think it would be nice to specify custom operators

[web2py] Re: Encrypting/decrypting db values

2013-06-26 Thread Massimo Di Pierro
You have a choice already. You can import any library you like and use that for encryption. The issue is making the default choice more easily available. A built-in web2py faction cannot have a parameter to choose the encryption algorithm because web2py only comes with AES. On Tuesday, 25 June

  1   2   >