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

2013-06-26 Thread Rohitraj Sharma
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 can help me plz i am using the fallowing code for that View script jQuery(function() { jQuery('#table').change(function() {

[web2py] Re: SQLFORM.smartgrid

2013-06-26 Thread Rohitraj Sharma
You can use labda function in your db Field('companyField name',db.linked table name, represent=lambda c, row:field name of linked table(c), requires=IS_IN_DB(db,'field.id','%(patient)s')), On Wednesday, 26 June 2013 10:36:03 UTC+5:30, Tom Russell wrote: Another question on the smartgrid.

[web2py] Re: web2py on Heroku

2013-06-26 Thread Kyle Pennell
Hey Massimo, I tried asking a question about Heroku but it wasn't approved. Should I be following these instructions now? On Thursday, November 29, 2012 7:41:45 AM UTC-8, Massimo Di Pierro wrote: FYI (from web2py-developers) Hello everybody, At PyCon Argentina I met Craig Kerstiens from

[web2py] E-commerce solution

2013-06-26 Thread paulo . sobrinho33
Hello guys, I am new here. Is there a full e-commerce web2py app like Sachmo, LFS, Cartridge (Mezzanine) or oscarCommerce? Is there a blog app? I would be glad if you have live site examples. Thanks in advance, -- --- You received this message because you are subscribed to the Google

[web2py] generic WHERE clause in DAL

2013-06-26 Thread Calvin
I would like to suggest a generic query which could allow queries within the DAL framework for functions supported by the database but not web2py's DAL by feeding in the raw query as would be expected in SQL native to a particular database. While DAL hides alot of subtle differences in

[web2py] Re: GAE Database codification issues? Using reveal-slides and wiki pages

2013-06-26 Thread Massimo Di Pierro
Thanks for letting us know. On Tuesday, 25 June 2013 15:31:30 UTC-5, peibol wrote: Excuse me for the monologue, but it can also be useful for somebody. The thing was that I was accesing the deployed app via https. Doing so, chrome disabled js, and the weird thing is that in Firefox it

[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

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

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, paulo.sobrinh...@gmail.com wrote: Hello guys, I am new here. Is there a full e-commerce web2py app

[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

[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

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

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

[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] 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 mdipie...@cs.depaul.edu There is a major

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

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

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

[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] 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 Docshttp://web2py.com/books/default/chapter/29/13?search=cgi#Shared-hosting-with-mod_python I put the whole web2py folder in a folder

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

[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

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 mdipie...@cs.depaul.edu 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

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: [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 herehttp://web2py.com/books/default/chapter/29/14#Upgrading, and maybe a reminder message could be shown in

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

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

[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 Docshttp://web2py.com/books/default/chapter/29/13?search=cgi#Shared-hosting-with-mod_python, I've created an folder htdocs. In this the folder web2py contains the whole web2py framework

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

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 unsubscribe

[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] about routes.py

2013-06-26 Thread Jonathan Lundell
On 26 Jun 2013, at 6:33 AM, Martin Weissenboeck mweis...@gmail.com 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

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

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

[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

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

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

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

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.

[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

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] 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

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

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

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] #

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

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 t...@caregointl.com form[0]=TABLE( FIELDSET(TAG.legend(Patient Info),TABLE(fs0),_id=register0), FIELDSET(TAG.legend(Emergency Contact Info),TABLE(fs1),_id=register1),

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

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 ramstei...@gmail.comwrote: That is a very clever solution. Saved my day. Thank you 2013/6/26 Tom Russell

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

[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 type 'exceptions.TypeError' lambda() takes exactly 1

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

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

[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

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

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 ml.richard.vez...@gmail.com 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

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

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

2013-06-26 Thread Tom Russell
Another solution can be: {{extend 'layout.html'}} h2Education CV/h2 div id='form1'{{=education_form}}/div h2Student/h2 div id='form1'{{=student_form}}/div h2School/h2 div id='form1'{{=school_form}}/div On Wed, Jun 26, 2013 at 12:47 PM, Tom Russell t...@caregointl.com wrote: Saved mine

[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: type 'exceptions.AttributeError' 'Row' object has no attribute 'bom' db.define_table('video', Field('titulo', requires=IS_NOT_EMPTY(), unique=True), Field('tag', 'list:reference tag'),

[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

[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

[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

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

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 ml.richard.vez...@gmail.com wrote: The memory leak was only perceptible

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 ml.richard.vez...@gmail.com 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

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

Re: [web2py] Appointment Manager

2013-06-26 Thread Richard Vézina
:) On Wed, Jun 26, 2013 at 1:54 PM, Tom Russell t...@caregointl.com 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

[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

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

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

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

[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

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

[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

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

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

[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

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

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

[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

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

[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

[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

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

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 scotti...@gmail.com 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 =

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

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 at

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 to

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

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

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

[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_table():

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