[web2py] Re: web2py is moving

2013-03-02 Thread Monte Milanuk
So... this is supposed to be installable as an app within web2py, right? It's not a w2p file, so I can't install it directly as a package file. I tried renaming the original zip file I downloaded to a .w2p extension, nada. Tried extracting and then repackaging as a .tar.gz file... nada. Trie

[web2py] Re: web2py is moving

2013-03-02 Thread Massimo Di Pierro
Most of it is images. They are repeated. They should not be. On Saturday, 2 March 2013 22:56:50 UTC-6, wwwgong wrote: > > I installed 3 languages (ENU, CHN DEU) locally, total size = 30MB > so it is about 10MB/per lang > > > On Saturday, March 2, 2013 11:53:07 PM UTC-5, wwwgong wrote: >> >> If yo

[web2py] Re: web2py is moving

2013-03-02 Thread wwwgong
I installed 3 languages (ENU, CHN DEU) locally, total size = 30MB so it is about 10MB/per lang On Saturday, March 2, 2013 11:53:07 PM UTC-5, wwwgong wrote: > > If you choose 1 lang, the size is much smaller > > On Saturday, March 2, 2013 11:01:27 PM UTC-5, LightDot wrote: >> >> The book is too bi

[web2py] Re: web2py is moving

2013-03-02 Thread wwwgong
If you choose 1 lang, the size is much smaller On Saturday, March 2, 2013 11:01:27 PM UTC-5, LightDot wrote: > > The book is too big to be included in every download, IMHO, it's about 120 > MB or so. > > The link... well, github -> search -> web2py book ;) > > Regards, > Ales > > On Sunday, March

Re: [web2py] Re: web2py is moving

2013-03-02 Thread Monte Milanuk
On 03/02/2013 08:01 PM, LightDot wrote: The book is too big to be included in every download, IMHO, it's about 120 MB or so. Holy moly... didn't realize it was that portly! I'd be curious as to where all the MB are coming from? Guess I'll download it and find out ;) The link... well, githu

[web2py] Optimising caching and enabling gzip for web2py on heroku?

2013-03-02 Thread Alec Taylor
Going through the Google PageSpeed Insights report (https://developers.google.com/speed/pagespeed/insights) to see what I should optimise to improve my site-load speed. The two high priority ones to worry about are: - Leverage browser caching - Enable compression How do I deal with these internal

[web2py] Re: web2py is moving

2013-03-02 Thread LightDot
The book is too big to be included in every download, IMHO, it's about 120 MB or so. The link... well, github -> search -> web2py book ;) Regards, Ales On Sunday, March 3, 2013 2:22:40 AM UTC+1, Monte Milanuk wrote: > > Could you provide a link? I would very much like to work offline at > tim

Re: [web2py] Re: creating groups

2013-03-02 Thread Carlos Costa
You can create records and the the auth_group to create a group give a look at it in the database admin, it is simple. For example: form = crud.create(db.auth_group) with this line you can create a form where the user will insert a record, so creating a new group. To put someone in a group simpl

[web2py] Re: web2py is moving

2013-03-02 Thread Monte Milanuk
Could you provide a link? I would very much like to work offline at times, and the PDF is falling further and further behind. Actually, I wish the current version of the online html book would just be included in the download as a webapp by default. On Friday, March 1, 2013 5:34:50 PM UTC-8, r

[web2py] Changing reference definition in models files does not update MySQL database

2013-03-02 Thread Kenneth
Hi, I defined an table in models with an field with type reference db.t_abc later I changed the models file so that type is reference db.t_def I reloaded the page and everything seams to be fine but now when using the app I noticed that MySQL's table definition is not updated. What would be th

[web2py] Re: creating groups

2013-03-02 Thread sasogeek
Help... -- --- 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, visit https://groups.google.com/groups/opt_o

[web2py] Re: Creating a form using a for loop

2013-03-02 Thread Arglanir
I think your compilation error comes from the fact that in Python you cannot have a variable name starting with a number. Try changing the field names of Evaluation table to _1_1A... Then remember that only one form can be submitted in HTML, so your controler will be called only for one submitt

[web2py] Re: Issue with store() method on GAE

2013-03-02 Thread montgomery . global
Thanks. Please keep me posted. On Saturday, March 2, 2013 11:15:17 PM UTC+8, Massimo Di Pierro wrote: > > Now I understand. Thanks for the clarification. I think there is a bug in > store on GAE. There is already an open ticket about this. Will take a look > asap. > > On Saturday, 2 March 2013 0

[web2py] Re: Using a recursive select but encountered a broken reference

2013-03-02 Thread Marin Pranjić
It seems that the problem is because I run two web2py instances. One runs on domain.com and the other is on testing.domain.com. When I turn off testing instance, everything works as it should. With testing instance turned on, production instance fails. So... Can someone help me configure two web

[web2py] Creating a form using a for loop

2013-03-02 Thread Anthony Bond
I've been working with web2py for about two months now. I've figured out how to do a lot of awesome things with it; however, the problem I'm having now has me stumped. I'm working on an application that allows a user to submit a self-evaluation, based on criteria that the user will find on a p

[web2py] Using a recursive select but encountered a broken reference

2013-03-02 Thread Marin Pranjić
This happened to an user multiple times. No idea why it happens. Error ticket doesn't show much, this is everything I can get from there: Traceback (most recent call last): File "/home/www-data/web2py/gluon/main.py", line 571, in wsgibase session._try_store_in_cookie_or_file(request, response)

Re: [web2py] Re: web2py is moving

2013-03-02 Thread LightDot
Well, web2py.com with and without www resolves from my location (EU). DNS query shows A records at dns1.vps.net and dns2.vps.net for both, pointing at the same IPs, etc.. I can also reach the web site at both addresses, the book app works for me now... So both DNS and VPS settings seem ok now.

[web2py] changing validator of one field based on choice of another field

2013-03-02 Thread brushek
Hello, I have a form (generated by FORM) in which I want to change validator if user checks diffrent radio button, it is somothing like this (pseudocode): input field is named deg_or_rad if radio1 checked: then deg_or_rad is checked against range (-4:4) if radio2 checked: then de_or_rad is ch

[web2py] Re: Reference field to string field in a keyed table. MSSQL

2013-03-02 Thread Dmitry Mosin
Hello, friends Now it looks like global name 'table_name' is not defined 806. 807. 808. 809. 810. 811. 812. 813. 814. 815. ftype = ftype + \ types['reference FK'] % dict( constraint_name =

Re: [web2py] web2py.com moved to PythonAnywhere.com

2013-03-02 Thread Massimo Di Pierro
As I posted in another thread. there is a DNS issue. Use www.web2py.com/book or www.web2py.com/books On Saturday, 2 March 2013 09:31:43 UTC-6, Vasile Ermicioi wrote: > > web2py.com/books > > doesn't work either > -- --- You received this message because you are sub

Re: [web2py] Re: web2py is moving

2013-03-02 Thread Massimo Di Pierro
It is not down but we have some DNS issues. www.web2py.com works fine www.web2py.com/books works fine www.web2py.com/book was not redirecting and now fixed web2py.com worked yesterday but not today. Trying to find out why not redirecting. On Saturday, 2 March 2013 08:29:46 UTC-6, Manuele wrote

[web2py] creating groups

2013-03-02 Thread sasogeek
I have an app where people can sign up and have profiles, but I don't know how permissions work, I've tried to read the book but I want a little bit more explanation... What I want to do is allow users to create groups which they can name themselves. So that there's a link or button "create a gr

Re: [web2py] web2py.com moved to PythonAnywhere.com

2013-03-02 Thread Vasile Ermicioi
web2py.com/books doesn't work either -- --- 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, visit https://

Re: [web2py] web2py.com moved to PythonAnywhere.com

2013-03-02 Thread Massimo Di Pierro
I thought I fixed. I will try again. For now use: web2py.com/books On Saturday, 2 March 2013 08:24:48 UTC-6, Michele Comitini wrote: > > http://web2py.com/book -> invalid request > > 2013/3/2 Massimo Di Pierro >: > > Yesterday we moved web2py.com to PythonAnywhere.com hosting. > > > > Everyth

[web2py] Re: Reference field to string field in a keyed table. MSSQL

2013-03-02 Thread Massimo Di Pierro
Fixed. please check it. Thanks Denes. On Saturday, 2 March 2013 06:12:31 UTC-6, DenesL wrote: > > It seems that the original code for keyed tables was wrongly patched at > some point in time. > That part of the code should read: > > ftype = ftype + \ > types['reference FK'] % dict

[web2py] Re: Issue with store() method on GAE

2013-03-02 Thread Massimo Di Pierro
Now I understand. Thanks for the clarification. I think there is a bug in store on GAE. There is already an open ticket about this. Will take a look asap. On Saturday, 2 March 2013 05:21:34 UTC-6, montgome...@gmail.com wrote: > > Sorry if that didn't make sense, let me try again. > > I have smal

Re: [web2py] Re: login by ajax

2013-03-02 Thread Phyo Arkar
If you worry about your credentials visibility over the wire , SSL. If you worry about your credentials visibility on the screen , None actually. On Sat, Mar 2, 2013 at 5:54 AM, Alan Etkin wrote: > +1 for auth,ajax_login() > > > I'm also interested in a bare ajax login feature, but, what about t

Re: [web2py] Re: RESTful vs JSONRPC

2013-03-02 Thread Phyo Arkar
Thank you very much for very detailed explanation niphlod. Amazing. For me , JSONRPC is more useful in current projects (which do not need CURD , just Update and Read is mostly done ). For my case it is mostly Machine learning , parsing files , indexing , producing Network diagrams , etc. so that

Re: [web2py] Re: web2py is moving

2013-03-02 Thread Manuele Pesenti
Il 02/03/13 03:32, Massimo Di Pierro ha scritto: It is back online. Sorry for the disruption but yesterday we moved to PythonAnywhere and routes broke. it looks off line again now... invalid request M. -- --- You received this message because you are subscribed to the Google Groups

Re: [web2py] web2py.com moved to PythonAnywhere.com

2013-03-02 Thread Michele Comitini
http://web2py.com/book -> invalid request 2013/3/2 Massimo Di Pierro : > Yesterday we moved web2py.com to PythonAnywhere.com hosting. > > Everything should work well. If you experience any problem please report it > here. > > PythonAnywhere is a fantastic platform for web2py hosting and moving the

Re: [web2py] Re: RESTful vs JSONRPC

2013-03-02 Thread Niphlod
it's merely a question about "angles" suppose you want to give access only to one table, e.g., products. only search by name and return just the quantity in stock in addition to the name. with jsonrpc you need to code a function that searches through your products and returns a list of tup

[web2py] Re: login by ajax

2013-03-02 Thread Niphlod
The data is transmitted on the wire in the same exact manner via an ajax POST or the usual POST. The only security needed is SSL, for both, if you don't want to pass credentials in clear format. On Saturday, March 2, 2013 12:24:44 AM UTC+1, Alan Etkin wrote: > > +1 for auth,ajax_login() > > > I'

[web2py] Re: Creating a basic website with a html layout.

2013-03-02 Thread Niphlod
with the scaffolding app, it's as easy as replacing the standard index function with yours and use return dict(quote=quotes[day]) at the bottom of it instead of your return quotes[day] On Saturday, March 2, 2013 1:26:50 AM UTC+1, Erik Clinger wrote: > > I'm a self taught high school students

Re: [web2py] Re: RESTful vs JSONRPC

2013-03-02 Thread Alec Taylor
Can you expand a little on "features"? Would be interested in a more concrete example of when to use JSONRPC over REST On Sat, Mar 2, 2013 at 11:53 PM, Niphlod wrote: > JSONRPC is a method to invoke functions that is standardized. REST is a > standardized method to represent something. > > Stand

[web2py] Re: scheduler and workers

2013-03-02 Thread Niphlod
Nope, you can't start processes adding records to the workers table. You need to start workers the same way you did issuing web2py.py -K appname On Saturday, March 2, 2013 8:19:39 AM UTC+1, mweissen wrote: > > I have started my application with 4 workers. > But some workers have stopped (?) and n

[web2py] Re: RESTful vs JSONRPC

2013-03-02 Thread Niphlod
JSONRPC is a method to invoke functions that is standardized. REST is a standardized method to represent something. Standards are constructed on different things: JSONRPC standardizes the transport method and the returned values, while REST standardizes how you should represent a given "entity"

[web2py] Re: Reference field to string field in a keyed table. MSSQL

2013-03-02 Thread DenesL
It seems that the original code for keyed tables was wrongly patched at some point in time. That part of the code should read: ftype = ftype + \ types['reference FK'] % dict( constraint_name = constraint_name, foreign_key = '%s (%s)' % (rtablename,

[web2py] Re: Issue with store() method on GAE

2013-03-02 Thread montgomery . global
Sorry if that didn't make sense, let me try again. I have small ( < 100 kb) audio files that I am getting on the fly via the gluon.tools.fetch method from a third party API. I want to insert them into the uploads folder and create entries for them in the database (as if they were data uploaded

[web2py] RESTful vs JSONRPC

2013-03-02 Thread Phyo Arkar
>From what it seems, RESTFUL seems a bit more complex vs JSONRPC. What are the advantages for using REST, when using full AJAX Framework like qooxdoo? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop

Re: [web2py] Re: Web2py 2.3.2 broke JSONRPC

2013-03-02 Thread Phyo Arkar
Things changes quite fast lol :D On Sat, Mar 2, 2013 at 3:48 AM, Michele Comitini wrote: > http://www.jsonrpc.org/specification > > not draft anymore... > > mic > > 2013/3/1 Phyo Arkar : > > I c , JSONRPC2 is still in draft right? > > we are not using JSONRPC2 yet so that gave us problem. > > >