[web2py] Re: web2py vs others. Status of 2014

2014-08-07 Thread LightDot
Bleeding edge in terms of enterprise means something completely different then on a personal device. If they are running CentOS or Red Hat or Scientific Linux then they are a good step towards running a solid enterprise IT system, so good for them. In their case, beeing bleeding edge means test

[web2py] web2py and anaconda

2014-08-07 Thread Massimo Di Pierro
Anaconda has become my favorite python distribution but I have a problem. When I run the web2py shell with anaconda: ~/anaconda/bin/python web2py.py -S welcome -P I cannot type the "b" character in the shell. The first time I experienced this I thought the char in the keyboard was mechanically b

[web2py] How do I get the www.address.com automatically using web2py?

2014-08-07 Thread Jason Lee
I have an application that is streaming video from a number of sources. I am streaming one of the videos for a view using https://192.x.x.x/cgi-bin/";> and it works when I am on the LAN. However, when I am logging in remotely the image does not display because the IP address is an internal IP.

[web2py] Redirect afer login problem

2014-08-07 Thread NOSSOLUTIONS
Hi All, I' have made a simple application with web2py using the default layout, but i've a problem with redirect after login. I want to redirect the user to /default/home after login, but i've some problem. I've tried all the solution proposed on this group with no luck. db.py # -*- coding: utf-8

[web2py] Adding attributes to fields

2014-08-07 Thread asumal
Hello everyone, I would like to store additional information for each field in one of my tables. I will use this information to choose the correct text colour for each column of each record. My end goal: ... db.table.field.represent = lambda value, row : get_text_colour (value, row, db.tabl

[web2py] Route (legacy) php request to a web2py function

2014-08-07 Thread wish7code
Hi guys, any idea how I can map an url like upload/upl*.php5* to an web2py controller/function? Background: upload/upl.php was the old url from an outdated php server stack. Unfortunately it has been hardcoded in some clients out of my control. To make things work a 301 redirect will break thi

[web2py] Re: autocomplete widget a disaster on Internet Explorer

2014-08-07 Thread Капылов Данил
Found a way out of this problem --style.css-- #_autocomplete_region_name_div{ position: relative !important; } вторник, 14 июня 2011 г., 2:46:30 UTC+6 пользователь Massimo Di Pierro написал: > > Do you know why it does not work? > > On Jun 13, 10:28 am, Anthony wrote: > > I can confirm

[web2py] web2py db manual table entries

2014-08-07 Thread Ali Kayes
So, in my db.py, I defined a table as such: db.define_table('dummy', Field('name'), Field('category'), Field('number')) But how would I add my own values in that table? It seems like if I do something like: db.dummy.insert(name='jon',category='cat',number='

Re: [web2py] Can I create an RSS Reader like Techi in web2py?

2014-08-07 Thread Gideon George
> > Thank you everyone for your contributions. > Ricardo please I am still trying to figure out how to to this, and looking at the url you gave on www.feeds.uni.me redirrects to http://vioos.com/. I really like the layout of http://vioos.com/ .Please was that done using rss in web2py? if yes

[web2py] Re: Working with MSSQL with codepage other than latin1 or unicode

2014-08-07 Thread Алексей Котряхов
Hello I double checked. In layout.html четверг, 7 августа 2014 г., 7:11:04 UTC+11 пользователь Massimo Di Pierro написал: > > Before we look into something else can you check the encoding declared in > your layout.html? It should be utf8 > > > On Wednesday, 6 August 2014 02:09:26 UTC-5, Алексе

Re: [web2py] Facebook OAuth - newbie question

2014-08-07 Thread lyn2py
Ok, I have figured out why it didn't work for me. It's because I put the code in user/login/facebook, when I should have just used user/login. Because the request.vars.code goes to user/login, it is unable to read when I put the code in the former. It has created the user and it has logged me i

Re: [web2py] Facebook OAuth - newbie question

2014-08-07 Thread lyn2py
I looked through the code gluon.contrib.login_methods.oauth20_account and just banged out something to test in the module for the Facebook class. from gluon import current print current.request.vars #gave Looks like it isn't getting the request.vars.code it's supposed to get... On Friday, Au

Re: [web2py] Facebook OAuth - newbie question

2014-08-07 Thread lyn2py
Good one Michele! This was what I did: if not self.accessToken(): print 'no accesstoken' return None No accessToken(), what then should I do? Or where should I consult? On Friday, August 8, 2014 5:40:09 AM UTC+8, Michele Comitini wrote: > > Could be a session problem. >

[web2py] Re: Thank You

2014-08-07 Thread Massimo Di Pierro
:-) On Thursday, 7 August 2014 15:41:15 UTC-5, Derek wrote: > > That's awesome, so it's like bankruptcy for dummies? > > On Thursday, August 7, 2014 5:18:18 AM UTC-7, Mark Billion wrote: >> >> I just finished the first beta of software that automates consumer >> chapter 7 filings... >> https://m

[web2py] Re: web2py vs others. Status of 2014

2014-08-07 Thread Dave S
On Thursday, August 7, 2014 7:43:57 AM UTC-7, Jim S wrote: > > Speaking as an employee of a modern agri-business company, using web2py, > from the midwest, with windows xp a distant memory, I can tell you that > your stereotypes are pretty far off. Seems to me there is a lot of tall > corn ri

[web2py] New Version or Update

2014-08-07 Thread Dan Kozlowski
It seems like it has been a long while for a new update or release. Does anyone know when we should expect one ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issue

[web2py] Re: Bare Login using API key

2014-08-07 Thread Massimo Di Pierro
>From a security standpoint the they have the same problem but at least the latter is not blocked by browser and you can test it in the browser. On Thursday, 7 August 2014 06:03:20 UTC-5, lyn2py wrote: > > Ok thank you for pointing out the security measures. I'm new to this so I > had no idea ab

Re: [web2py] Re: web2py on heroku getting "InternalError: current transaction is aborted..." Ticket

2014-08-07 Thread Massimo Di Pierro
It was tested on heroku and it worked. please opena ticket. perhaps something has changed. On Wednesday, 6 August 2014 03:22:03 UTC-5, Louis Amon wrote: > > Got the same issue as well. > > Apparently the problem has to do with the "UseDatabaseStoredFile" class > inherited by the "HerokuPostgresA

[web2py] Re: plugin_lazy_options widget

2014-08-07 Thread Jesse Ferguson
The first two args for the widget seem to reference the fields class "suggest_selected" in the source of the plugin they are referred to as on_key and off_key. There is also a trigger option however I cant figure out what that does... -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] plugin_lazy_options widget

2014-08-07 Thread Jesse Ferguson
Can you use the plugin_lazy_options_widget on itself? For example, db.service_order.so_company.widget = suggest_widget(db.company.company_name, id_field=db.company.id, limitby=(0, 10), min_length=1) """Below Works Just fine""" db.service_order.so_location.widget = lazy_options_widget(

[web2py] Re: Replacing target with ajax?

2014-08-07 Thread Spokes
Thanks, Anthony. On Thursday, August 7, 2014 3:28:43 PM UTC-5, Anthony wrote: > > Put the target inside a DIV and make the outer DIV the new target. Or use > ':eval' to do the replacing with JavaScript. > > Anthony > > On Thursday, August 7, 2014 9:00:50 PM UTC+2, Spokes wrote: >> >> When a targe

Re: [web2py] Facebook OAuth - newbie question

2014-08-07 Thread Michele Comitini
Could be a session problem. Check that your session is created and works across page reloads. Also check the get_user() method there could be some error raised there (most likely by the GraphApi), use the debugger or simply put some logging statements to see what's going on I had also troubles w

Re: [web2py] Re: reLOAD only if the content has changed (2)

2014-08-07 Thread Derek
You may want to look at the cache examples, as they are doing something similar. On Thursday, August 7, 2014 1:50:47 PM UTC-7, mweissen wrote: > > Thanks for the detailed explanation. > > What is the idea? > Let's say there are 30 persons in a lecture. Every person is a user of the > my website

Re: [web2py] Re: reLOAD only if the content has changed (2)

2014-08-07 Thread Martin Weissenboeck
Thanks for the detailed explanation. What is the idea? Let's say there are 30 persons in a lecture. Every person is a user of the my website. But the pages of the presentation should not be presented all at once. A new page becomes visible at the moment I give it free. Therefore every client shoul

[web2py] Re: Thank You

2014-08-07 Thread Derek
That's awesome, so it's like bankruptcy for dummies? On Thursday, August 7, 2014 5:18:18 AM UTC-7, Mark Billion wrote: > > I just finished the first beta of software that automates consumer chapter > 7 filings... > https://mmb21167.pythonanywhere.com/Sharkskin_2_2/default/user/login >

[web2py] Re: web2py vs others. Status of 2014

2014-08-07 Thread Derek
Well, according to a few searches I've done, they make specialized equipment for a very specific market. You'd probably not be one of their customers. On Thursday, August 7, 2014 5:42:28 AM UTC-7, Willoughby wrote: > > Actually, modern agri-business is one of the most connected there is. > > Wha

[web2py] Re: Replacing target with ajax?

2014-08-07 Thread Anthony
Put the target inside a DIV and make the outer DIV the new target. Or use ':eval' to do the replacing with JavaScript. Anthony On Thursday, August 7, 2014 9:00:50 PM UTC+2, Spokes wrote: > > When a target is specified (as opposed to using ':eval'), web2py's ajax > call replaces the content of t

[web2py] Re: reLOAD only if the content has changed (2)

2014-08-07 Thread Niphlod
technically LOAD uses a GET, so returning the correct cache headers with a correct status **should** (read, every browser has its own implementation) avoid "fragment" (i.e. web2py component) refreshes. But if you return the same Etag with a 200 response with a content, the browser WILL replace i

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-07 Thread Jim S
Finally figured out my problem. It seems to me that everything works fine if I use pip to install additional python packages. But if I use easy_install then I get the python errors. I 'think', but am not sure that the problem lies in some egg cache files that exist in the logged-in users home

[web2py] Replacing target with ajax?

2014-08-07 Thread Spokes
Web2py's ajax call replaces the content of a target div when used with a target, rather than with ':eval'. What's the best way, using the ajax call, to replace the target itself, rather than replacing the content of the target? Thank you. -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Controller to do SOAP to an action-less service, how to generate the (xml) nodes

2014-08-07 Thread Dave S
>From my appendage to another thread: So it's not too bad consuming a service I provide for myself, but I'm also interested in a service provided by a third-party device. This particular service doesn't use "action", instead it uses "control" and "flag". In a SUDS client (sudsclient = suds.cli

[web2py] Facebook OAuth - newbie question

2014-08-07 Thread lyn2py
Hello, I have setup the code for FB oauth per web2py book here: http://web2py.com/books/default/chapter/29/09/access-control The code here: ## Define oauth application id and secret. FB_CLIENT_ID='xxx' FB_CLIENT_SECRET="" ## import required modules try: import json except ImportError:

[web2py] Re: reLOAD only if the content has changed (2)

2014-08-07 Thread Martin Weissenboeck
Thank you for this information. Shall I use a jquery.ajax-call or can I use the LOAD-helper? 2014-08-07 11:24 GMT+02:00 Niphlod : > if you trigger an ajax request, if it's a GET (an idempotent method) you > may avoid reloading the page and get back a 304but it's > not handled

[web2py] Submitting multiple ajax-generated forms with a single button?

2014-08-07 Thread Spokes
I have a page in which multiple forms may be submitted. * the main/primary form (which is mandatory) is generated with SQLFORM and is always present on the page (i.e. it is generated server-side when the page is loaded) * additional forms may be added to upload images. These forms are generated

[web2py] Re: web2py vs others. Status of 2014

2014-08-07 Thread Jim S
Speaking as an employee of a modern agri-business company, using web2py, from the midwest, with windows xp a distant memory, I can tell you that your stereotypes are pretty far off. Seems to me there is a lot of tall corn right down in Illinois near where Massimo started web2py. -Jim On Tuesd

[web2py] Re: prevent record removal

2014-08-07 Thread Niphlod
action: @auth.requires_login() def remove_the_record(): . if auth.has_permission('delete', 'whatever', record_id): #remove the actual record return 1 else: return 0 callback: def dontdelete(s): if whatever: #you can't

[web2py] Re: web2py vs others. Status of 2014

2014-08-07 Thread Willoughby
Actually, modern agri-business is one of the most connected there is. What is the name of your web site so I can tell my neighbors to avoid it? On Wednesday, August 6, 2014 6:49:34 PM UTC-4, Dave S wrote: > > > > On Wednesday, August 6, 2014 8:35:06 AM UTC-7, Cliff Kachinske wrote: >> >> Moderniz

[web2py] Thank You

2014-08-07 Thread Mark Billion
I just finished the first beta of software that automates consumer chapter 7 filings...https://mmb21167.pythonanywhere.com/Sharkskin_2_2/default/user/login I wanted to take a moment to thank everyone on this board. I have learned so much and you all cannot know how valuable your insight has be

[web2py] prevent record removal

2014-08-07 Thread Manuele Pesenti
Hi! what's the quickest way to block a record removal to all users. I need an easy method to insert the block and even easy to remove... I hope I've been clear enough :) Thanks in advance Cheers Manuele -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gi

[web2py] Re: How can I set correctly auth.settings.registration_requires_verification = False ?

2014-08-07 Thread Luca Guerrieri
Ops sorry, here the code ... *Overload of the Auth_user table* : ## Auth custom fields auth.settings.everybody_group_id = 1 auth.settings.extra_fields['auth_user']= [ Field('username', type='string', label=T('Username')), Field('f_role', type='integer', default=2, label=T('Role')),

[web2py] Re: Bare Login using API key

2014-08-07 Thread lyn2py
Ok thank you for pointing out the security measures. I'm new to this so I had no idea about it. Is it better to do away with *login:p...@url.com* and use instead *url.com/call/jsonrpc/api_key *, or what would be the correct / recommended method to serve APIs with web2py? Thank you, I appreciat

[web2py] Re: scheduler new feature: task dependencies

2014-08-07 Thread Niphlod
I don't see exactly how. If you prepare a job, the "path" is already fixed the idea behind a workflow is to make "turns" between several "paths" in reply to some events or user interactions or states. That being said, you could theoretically queue tasks dinamically, and the added feature wil

[web2py] Re: reLOAD only if the content has changed (2)

2014-08-07 Thread Niphlod
if you trigger an ajax request, if it's a GET (an idempotent method) you may avoid reloading the page and get back a 304but it's not handled automatically by web2py unless the content is static. On Thursday, August 7, 2014 7:52:30 AM UTC+2, mweissen wrote: > > Dave told me th

[web2py] Re: How do you display created_by and modified_by names and not id's when using lazy tables?

2014-08-07 Thread Leonel Câmara
Here's an alternative to putting it in the controller, if you want them to be represented the same way everywhere, put this in your models before auth.define_tables: def represent_auth(auth_ref, row): user = db(db.auth_user.id == auth_ref).select(db.auth_user.first_name, db.auth_user.last_n

[web2py] Re: How can I set correctly auth.settings.registration_requires_verification = False ?

2014-08-07 Thread Luca Guerrieri
Ops sorry, here the code ... > > > > > > > > > > > > > > > > > > > > > > > > > *Overload of the Auth_user table : ## Auth custom fields > auth.settings.everybody_group_id = 1 > auth.settings.extra_fields['auth_user']= [ Field('username', > type='string', label=T('Username')), Field(

[web2py] Re: How can I set correctly auth.settings.registration_requires_verification = False ?

2014-08-07 Thread Luca Guerrieri
*Overload of the Auth_user table : ## Auth custom fields auth.settings.everybody_group_id = 1 auth.settings.extra_fields['auth_user']= [ Field('username', type='string', label=T('Username')), Field('f_role', type='integer', default=2, label=T('Role')), Fiel