Re: [web2py] Re: please help us test web2py

2012-07-08 Thread Keith Edmunds
On Sun, 8 Jul 2012 23:31:31 -0700 (PDT), too...@gmail.com said: > +1 on removing it... > The internet is covered with too many meaningless share buttons already. Surely the whole point of the 'welcome' application is to be a scaffolding to be modified as required? It is much easier for someone ne

[web2py] Re: please help us test web2py

2012-07-08 Thread Michael Toomim
On Friday, July 6, 2012 6:35:43 PM UTC-7, Massimo Di Pierro wrote: > > 2. Remove "Share" link from welcome app >> I think we agreed to remove "Share" link because it's not used very much. >> > > I think we agreed to remove the link to addtoany. Do you really want to > remove the share tab at the

[web2py] Re: sending emails from a google account

2012-07-08 Thread Janath
thank you for the email. It works, with the port number 587. mail = auth.settings.mailer mail.settings.server = 'smtp.gmail.com:587' mail.settings.sender = 'jana...@gmail.com' mail.settings.login = 'jana...@gmail.com:mypassword' On Sunday, July 8, 2012 6:25:15 PM UTC-5, Niphlod wrote: > > ma

[web2py] Re: how to avoid (catch) sqllite operational error

2012-07-08 Thread Janath
It worked :) Thank you On Sunday, July 8, 2012 6:47:59 PM UTC-5, Massimo Di Pierro wrote: > > try: > > except: #catch all >db.rollback() >. > > On Sunday, 8 July 2012 17:39:46 UTC-5, Janath wrote: >> >> Hi, >> >> I populate a database table by a csv file. >> >> In run time, if the user

[web2py] Re: Ajax div refresh on form submission

2012-07-08 Thread Andrew Evans
Spoke to soon the div does not update. What I am after is the div song_list refreshing in real time. I appreciate any help offered *cheers *controllers* def index(): return dict() def page_with_form(): return dict() def ajax_example(): rows = db(db.music2.id>0).select() return

[web2py] Re: Getting auth.settings.register_next to work...

2012-07-08 Thread Anthony
For those interested, in trunk, auth.navbar() now takes a referrer_actions argument. If you do: auth.navbar(referrer_actions=None) It will no longer add referrer URLs to the query strings of any of the navbar links, so any auth.settings._next settings will take precedence in that case. If you

[web2py] Re: Ajax div refresh on form submission

2012-07-08 Thread Andrew Evans
Ok my approach was a bit off. I got the div to update on form submission. But how to separate the form view from the same page as the view to display updates? which I think has to do with this return XML('ajax("%s",[],"#song_list");' % URL('default', 'ajax_example.load')) Any ideas

[web2py] Re: paymentech: post request

2012-07-08 Thread Adi
Thanks for the response. Even though I got this response: 412 Precondition Failed, the code bellow seems to work fine. Will check more tomorrow. import sys, httplib, urllib, urllib2 target = "https://orbitalvar1.paymentech.net/authorize:443"; HOST, API_URL = urllib2.splithost(urllib2.splittype

[web2py] Ajax div refresh on form submission

2012-07-08 Thread Andrew Evans
Hello I have two functions one for querying the data base and one for submitting data. I also have one view for the form and one load file for the database query I then LOAD the load file into index view {{extend "template.html"}} {{=LOAD('default', 'ajax_example.load', ajax=True)}} My Fo

[web2py] Re: Keeping track of CKEditor uploads in Web2py

2012-07-08 Thread Athelionas
Hmm, I'll look into it. Many thanks for the great idea. 2012. július 8., vasárnap 17:28:58 UTC+2 időpontban Niphlod a következőt írta: > > Using session is the simplest way to go before "opening" the editform > of the post you'd have to (clear and) save in session some identifier of > the p

[web2py] Re: Working with custom form

2012-07-08 Thread Anthony
As was mentioned earlier, if you're going to create a custom form like that, in place of , you need to include {{=form.custom.end}}. The reason is that web2py forms include two hidden fields, _formname and _formkey, and form.custom.end will add those hidden fields. They are used to protect agai

Re: [web2py] web2py DAL connection failing in Apache?

2012-07-08 Thread Ovidio Marinho
have you ever tried #sudo /etc/init.d/apache2 stop #sudo /etc/init.d/apache2 start if this does not work, use this: http://www.web2pyslices.com/slice/show/1356/setup-web2pyapachesslmod-wsgipostgresql-in-few-seconds Ovidio Marinho Falcao Neto Web Developer

[web2py] problem with custom primarykey

2012-07-08 Thread Vincenzo Ampolo
Hi, I'm trying to set up primary keys for the table 'ratings' described as : db.define_table('users', Field('name'), Field('email'), Field('imdb_id', 'integer') ) db.define_table('movies', Field('imdb_id', 'integer') ) db.define_table('ratings',

[web2py] Re: how to avoid (catch) sqllite operational error

2012-07-08 Thread Massimo Di Pierro
try: except: #catch all db.rollback() . On Sunday, 8 July 2012 17:39:46 UTC-5, Janath wrote: > > Hi, > > I populate a database table by a csv file. > > In run time, if the user tries to upload a file having different format to > the table. A sqllite operational error is detected. > > I

[web2py] Re: sending emails from a google account

2012-07-08 Thread Niphlod
mail.settings.server = 'logging' just writes if the mail is sent on the console, and it's only for debugging purposes. You should remove that line and leave only mail.settings.server=' smtp.gmail.com:465' to actually send any email. On Monday, July 9, 2012 1:18:49 AM UTC+2, Janath wrote: > > Hi,

[web2py] sending emails from a google account

2012-07-08 Thread Janath
Hi, I have very limited emails in configuring email servers. I try to used my gmail account to send emails from web2py. I used the following settings with my specific information (as mentioned in the web2py book): mail = auth.settings.mailer mail.settings.server = 'smtp.gmail.com:465' mail.se

[web2py] Re: Working with custom form

2012-07-08 Thread Chris
Now I have the custom page (e.g. register) appears correctly, however, when I submit the form nothing happens - the form just clears itself with no error msg or anything. My 'register' action in controller is: def register(): return dict(form=auth.register()) My 'layout.html' is as follow

[web2py] web2py DAL connection failing in Apache?

2012-07-08 Thread Osman Masood
Hi, I'm running web2py from an Apache server (in production), and it occasionally shuts down, i.e. fails to connect to the DAL until Apache is reset with 'sudo service apache2 restart'. The version of web2py is: Version 2.0.0 (2012-05-16 18:23:15) dev Running on Apache/2.2.14 (Ubuntu) Here's

[web2py] Re: Production performance lessions uwsgi + nginx

2012-07-08 Thread Cliff Kachinske
Bruce, I have learned a lot from reading the threads you start. Thanks for taking the time. Cliff Kachinske On Saturday, July 7, 2012 10:36:57 AM UTC-4, Bruce Wade wrote: > > Thanks to help from the uwsgi group (Specifically Ryan Showalter and > Lukasz Mierzwa) I learned about two important se

[web2py] Re: using db, auth and request objects in modules

2012-07-08 Thread Cliff Kachinske
You can also create your own storage object. import storage as st mystore = st.Storage mystore.request = request t read gluon/storage.py for more information. Lots of neat functions there. On Sunday, July 8, 2012 8:48:54 AM UTC-4, cornelinux wrote: > > Hi, > I think I am missing some of the

Re: [web2py] Looking for multi-select widget that uses two text boxes

2012-07-08 Thread MichaelF
Thanks, Bruno. That's not quite what I need for this job, but I do need that in another. I need something more like what Anthony posted ( http://quasipartikel.at/multiselect_next/). On Sunday, July 8, 2012 12:42:09 PM UTC-6, rochacbruno wrote: > > I guess you need this: > > > http://www.web2pysli

[web2py] Re: paymentech: post request

2012-07-08 Thread howesc
i've never used HTTP lib before, and i found "This module defines classes which implement the client side of the HTTP and HTTPS protocols. It is normally not used directly — the module urllibuses it to handle URLs that use HTTP and HTTPS

[web2py] Re: Web2py hanging with no errors in the log

2012-07-08 Thread howesc
i don't know your setup, so i can't say where to look for the web2py logs, but i would recommend increasing the log level in logging.conf, and adding some extra debug or info log statements to see if something is getting stuck along the way in your code. On Friday, July 6, 2012 5:52:11 PM UTC-7

Re: [web2py] Looking for multi-select widget that uses two text boxes

2012-07-08 Thread Bruno Rocha
I guess you need this: http://www.web2pyslices.com/slice/show/1526/cascading-drop-down-lists-with-ajax-2 *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] [image: Twitter] [image: LinkedIn]

[web2py] Re: Looking for multi-select widget that uses two text boxes

2012-07-08 Thread Anthony
Not sure what that widget is usually called, but web2py does not come with one. Note, that kind of widget would be handled client-side via Javascript (e.g., http://quasipartikel.at/multiselect_next/). Once you find a Javascript widget you like, it shouldn't be too difficult to get it to work wi

[web2py] Re: Working with custom form

2012-07-08 Thread Anthony
> > Cool. But is there way to configure the tag of a specific view page > that extends the 'layout.html'? For example, for my custom view, I want its > body tag to be like: > > > > Is it possible to configure such thing? Thanks! > and in the view: {{body_class = 'my_css_class'}} {{extend '

[web2py] Looking for multi-select widget that uses two text boxes

2012-07-08 Thread MichaelF
I'm aware of the multiple and checkbox widgets. I'm looking for a widget whose name I don't know. It consists of two side-by-side boxes, each box can contain a list of items, and usually starts off with all the items in the left-hand box. Between the two boxes are two arrows, usually one on top

Re: [web2py] Re: Web2py - internet explorer - admin login fails - http://127.0.0.1:8000/....

2012-07-08 Thread vinicius...@gmail.com
What was the solution? On 07/08/2012 01:38 PM, wdtatenh wrote: OK - now it's working - thanks for the tips. On Sunday, July 8, 2012 9:21:45 AM UTC-4, Massimo Di Pierro wrote: Does it ask you for the admin password? On Sunday, 8 July 2012 07:44:46 UTC-5, wdtatenh wrote: Thanks

Re: [web2py] Web2py using json

2012-07-08 Thread vinicius...@gmail.com
Let's break the scenario in 2 parts. 1) How will you send it to web2py? a) As a query string via HTTP GET encapsulated in only one param b) As several params, using a standard query string c) Via HTTP POST d) Other (tell us): 2) The web2py part is easy because it's Python, anyway. Just use jso

[web2py] Re: Working with custom form

2012-07-08 Thread Chris
> Right, you don't need a body tag in the view either. In layout.html, there > should be an {{include}} -- that gets replaced with the entire contents > of the view that extends the layout. Cool. But is there way to configure the tag of a specific view page that extends the 'layout.html'? F

[web2py] Re: Web2py - internet explorer - admin login fails - http://127.0.0.1:8000/....

2012-07-08 Thread wdtatenh
OK - now it's working - thanks for the tips. On Sunday, July 8, 2012 9:21:45 AM UTC-4, Massimo Di Pierro wrote: > > Does it ask you for the admin password? > > On Sunday, 8 July 2012 07:44:46 UTC-5, wdtatenh wrote: >> >> Thanks - tried it didn't work... even removed the tail and started with >> h

[web2py] Re: Web2py - internet explorer - admin login fails - http://127.0.0.1:8000/....

2012-07-08 Thread wdtatenh
Yes it does ask for my admin password but it just reloads the page with the same login screen. My browser has been set to accept any cookies and it still gives me the same response. > >

Re: [web2py] Re: using db, auth and request objects in modules

2012-07-08 Thread Anthony
Note, if you're going to add your own objects to current, you might want to do so in a special namespace, such as current.app. That way, if web2py later adds some of its own additional objects to current, you don't have to worry about the names conflicting with your custom objects. Anthony On

[web2py] Re: feed agregator (planet)

2012-07-08 Thread Bruno Rocha
FOund it! http://www.web2pyslices.com/slice/show/1407/planet-web2py Thanks

Re: [web2py] Re: translation does not translate

2012-07-08 Thread Massimo Di Pierro
I think I know what the problem was. languages may be country specific. The olf language detection needs to get the country code right. The new one knows better and pick the correct default language even if there is not one for the specific country code. On Sunday, 8 July 2012 10:28:02 UTC-5, c

[web2py] Re: Keeping track of CKEditor uploads in Web2py

2012-07-08 Thread Niphlod
Using session is the simplest way to go before "opening" the editform of the post you'd have to (clear and) save in session some identifier of the post that is going to be edited and use that to "tag" every row of the uploads. On Saturday, July 7, 2012 11:17:19 PM UTC+2, Athelionas wrote: >

Re: [web2py] Re: translation does not translate

2012-07-08 Thread Cornelius Kölbel
Hello Massimo, thanks for the hint. The trunk works right away. Do you need me to run some test to be able to give you more detailed feedback? Kind regards Cornelius Am 08.07.2012 15:20, schrieb Massimo Di Pierro: > Could you please check using trunk which has a smarter language > detection? > T

Re: [web2py] web2py deployment: Watchup

2012-07-08 Thread Luther Goh Lu Feng
Please have it released in the Singapore Appstore! On Sunday, July 8, 2012 10:06:36 PM UTC+8, netcode wrote: > > very cool > > On Sun, Jul 8, 2012 at 1:16 AM, Jonathan Lundell wrote: > >> On 7 Jul 2012, at 5:15 PM, Jonathan Lundell wrote: >> > >> > I've written an iPad (only, US-only for now) app,

Re: [web2py] Re: using db, auth and request objects in modules

2012-07-08 Thread Cornelius Kölbel
Hello Anthony, ok, now I got it. I also added some more objects to the current object in db.py and thus got rid of some parameters. Thanks and kind regards Cornelius Am 08.07.2012 15:15, schrieb Anthony: > Models, controllers, and views are executed in an environment that > includes all the web2

[web2py] Re: Working with custom form

2012-07-08 Thread Anthony
The layout also include a section, does this mean that in my custom > view I shouldn't have another section such that I should just write > all the custom html content without tags? > Right, you don't need a body tag in the view either. In layout.html, there should be an {{include}} -- tha

Re: [web2py] web2py deployment: Watchup

2012-07-08 Thread Chibuzo Ottih
very cool On Sun, Jul 8, 2012 at 1:16 AM, Jonathan Lundell wrote: > On 7 Jul 2012, at 5:15 PM, Jonathan Lundell wrote: > > > > I've written an iPad (only, US-only for now) app, newly in the App > Store, that is powered on the back end by web2py. > > > > The marketing website (SquareSpace, not we

[web2py] Re: Working with custom form

2012-07-08 Thread Chris
> No, because the layout already includes a section. The content of > the view gets inserted in the layout.html file at the point of the > {{include}}, which presumably is not in the head. The layout also include a section, does this mean that in my custom view I shouldn't have another se

[web2py] Re: Web2py using json

2012-07-08 Thread Massimo Di Pierro
def index(): from simplejson import loads, dumps data = loads(request.vars.myvar) return dumps(data) On Saturday, 7 July 2012 00:47:32 UTC-5, Akash Kakkar wrote: > > Hi, > > I want to send string content (html) from client to server using JSON and > then decode the JSON to string in

[web2py] Web2py - internet explorer - admin login fails - http://127.0.0.1:8000/....

2012-07-08 Thread Ron McOuat
If cookies are disabled in the browser login will fail. Ron

[web2py] Re: translation does not translate

2012-07-08 Thread Massimo Di Pierro
Could you please check using trunk which has a smarter language detection? This will eliminate some possibilities. On Saturday, 7 July 2012 19:45:03 UTC-5, cornelinux wrote: > > Hi there, > > I am using web2py 1.99.7. > It seems that my translation does not seem to work. > I updated the transla

[web2py] Re: using db, auth and request objects in modules

2012-07-08 Thread Anthony
Models, controllers, and views are executed in an environment that includes all the web2py API objects, including request, response, session, etc. The objects added to the environment by the models are also available in the controllers and views

Re: [web2py] publiching both apache and web2py sites

2012-07-08 Thread Manuel Gil
Hola Fernando. Me encuentro en una posición muy similar a la tuya, Servidor dedicado Plesk con 35 dominios. Quiero comenzar con web2py, pues me parece muy interesante, pero me da miedo tocar el el servidor. Por error di de alta un VPS con Plesk y quiero empezar a hacer pruebas pero voy muy mal

[web2py] using db, auth and request objects in modules

2012-07-08 Thread Cornelius Kölbel
Hi, I think I am missing some of the major concepts of web2py. By some_magic^TM is got some object like "db", "request" and "auth" available in all my controllers. I think these are setup in db.py. Anyway, still strange for me. What would I need to do, when I want to make these available in some

[web2py] Re: Web2py - internet explorer - admin login fails - http://127.0.0.1:8000/....

2012-07-08 Thread wdtatenh
Thanks - tried it didn't work... even removed the tail and started with http://.localhost:8000

[web2py] Web2py - internet explorer - admin login fails - http://127.0.0.1:8000/....

2012-07-08 Thread David Marko
I have the same issue recently with Chrome. You just have to change URL from 127.0.0.1 to localhost ...

[web2py] Web2py - internet explorer - admin login fails - http://127.0.0.1:8000/....

2012-07-08 Thread wdtatenh
attempting to login to web2py admin using IE - login fails. - works fine on Mozilla Firefox http://127.0.0.1:8000/admin/default/index?send=/default/design/welcome Security settings for intranet are set low in IE... I also can't login as a user (parts of my website require user login) on my de