Re: [web2py] Re: Solidform: key-error

2011-12-20 Thread Johann Spies
Dear Kenji, The form is working now without the previous problems. Thank you very much for making life easier for us! Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)

Re: [web2py] production site hosting

2011-12-20 Thread Johann Spies
On 20 December 2011 07:55, chandrakant kumar k.03chan...@gmail.com wrote: what are the good options(web hosts) for hosting the production sites? I'm located in India. Webfaction.com is a good option especially now that they have increased the available memory resources. Regards Johann --

Re: [web2py] Re: SQLForm.grid - How do I use it properly?

2011-12-20 Thread Johann Spies
On 20 December 2011 07:30, Rahul rahul.dhak...@gmail.com wrote: Is there a way to hide just the query button as for a public site, Unfortunately I don't know. You might find some clues inspecting the source code of gluon/sqlhtml.py. Regards Johann -- Because experiencing your loyal love is

Re: [web2py] How do I aggregate accounts using OAuth web2py?

2011-12-20 Thread Michele Comitini
Hi Matthew, Look under the applications of this web2py repository clone: https://code.google.com/r/michelecomitini-facebookaccess/ it is a bit old since oauth is stable in web2py and I do not have to test it much anymore, but all examples should work. Besides OAuth1 and OAuth2 you can also

Re: [web2py] Re: site-packages how?

2011-12-20 Thread Phyo Arkar
Thats what i did :D now gonna put into site-packages. On Sat, Dec 17, 2011 at 10:27 AM, Vineet vineet.deod...@gmail.com wrote: Keeping all 3rd party modules in site-packages (or whatever name you prefer for the folder) would bring orderliness. Consider when a developer is using a large no.

[web2py] Re: SQLForm.grid - How do I use it properly?

2011-12-20 Thread Rahul
@Johann, below code does not work for me. :( links = [lambda row: A('Edit' , _href = URL('default', 'edit_journal', args = [row.id]))] I used details='False' and it does not show the buttons to me, but shows my custom button only which is what I intended. Again for the community -

[web2py] OFF TOPIC - www.codeschool.com

2011-12-20 Thread António Ramos
http://www.codeschool.com Its nice to learn this way. Maybe we could put web2py inside it...

Re: [web2py] OFF TOPIC - www.codeschool.com

2011-12-20 Thread Bruno Rocha
Very nice! I teach an online web2py class at cursodepython.com.br I am now preparing some material in english, so I will have the first in-english online class very soon. -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] production site hosting

2011-12-20 Thread chandrakant kumar
I talked to their staff too, very friendly and helpful. On Tue, Dec 20, 2011 at 1:54 PM, Johann Spies johann.sp...@gmail.comwrote: On 20 December 2011 07:55, chandrakant kumar k.03chan...@gmail.comwrote: what are the good options(web hosts) for hosting the production sites? I'm located in

Re: [web2py] Re: SQLForm.grid - How do I use it properly?

2011-12-20 Thread Johann Spies
On 20 December 2011 14:25, Rahul rahul.dhak...@gmail.com wrote: @Johann, below code does not work for me. :( links = [lambda row: A('Edit' , _href = URL('default', 'edit_journal', args = [row.id]))] I used details='False' and it does not show the buttons to me, but shows my custom

Re: [web2py] OFF TOPIC - www.codeschool.com

2011-12-20 Thread Javier Quarite
I've subscribed 2 months ago and the way they teach is amazing It's not only their videos... it's also the examples when you finish the video a good way to practice what you've learned on the video As far as I know they only teach things related to rails... but maybe we can apply the same idea

[web2py] Re: Can't modify SQL table schema with db.define_table?

2011-12-20 Thread Yarin
Deleting the .table files solved the issue- thanks! Perhaps this should be made clearer in the docs with respect to SQLite. Something like: Dropping/renaming tables or columns, and changing column types in SQLite is problematic because... Solution is to: - Drop table in SQLiteManager or outside

[web2py] Re: Can't modify SQL table schema with db.define_table?

2011-12-20 Thread Yarin
Deleting the .table files solved the issue- thanks! Perhaps this should be made clearer in the docs with respect to SQLite. Something like: Dropping/renaming tables or columns, and changing column types in SQLite is problematic because... Solution is to: - Drop table in SQLiteManager or

Re: [web2py] production site hosting

2011-12-20 Thread Ross Peoples
There's a sticky on this somewhere, but webfaction is always recommended. There is also Google App Engine. If you would like a VPS-like host instead, then Rackspace, VPS.NET and Amazon EC2 are also options.

[web2py] Re: haml and sass

2011-12-20 Thread Ross Peoples
HamlPy is actually really cool. I've never heard or seen anything about it until now. It's like CSS syntax for making HTML so you don't have to write so much HTML code. If you can get something together to make it work with web2py, you could probably get it added to contrib.

Re: [web2py] production site hosting

2011-12-20 Thread Chandrakant Kumar
I prefer shared hosts over VPS. My only concern with webfaction is the location of servers. servers are located in Texas Amsterdam, while my target user base in India. On Tue, 20 Dec 2011 20:24:03 +0530, Ross Peoples ross.peop...@gmail.com wrote: There's a sticky on this somewhere, but

Re: [web2py] Re: site-packages how?

2011-12-20 Thread Ross Peoples
From my understanding, if you just plan on using 3rd party modules in a single application, then they should go into the application/modules folder. If they are going to be used in several applications, then you put them in site-packages. At least, that's how I've been doing it.

Re: [web2py] OFF TOPIC - www.codeschool.com

2011-12-20 Thread António Ramos
You can join for free, you have a Jquery free course inside. 2011/12/20 Javier Quarite jquari...@gmail.com I've subscribed 2 months ago and the way they teach is amazing It's not only their videos... it's also the examples when you finish the video a good way to practice what you've

[web2py] Re: Is there any mainstream wysiwyg html editor in web2py world?

2011-12-20 Thread Ross Peoples
I actually wrote this one that Anthony mentions: https://bitbucket.org/PhreeStyle/web2py_ckeditor/wiki/Home It is based on the framework laid in the slice (#4) that you mention.

[web2py] Re: json with https?

2011-12-20 Thread Ross Peoples
I do it all the time. As long as you are connecting to the same server that you loaded the page from, then you are all set. This is how I normally make JSON requests: var url = '{{=URL('some.json')}}/'; jQuery.getJSON(url).success(function(data) { // finished successfully alert(data);

[web2py] Re: haml and sass

2011-12-20 Thread Massimo Di Pierro
so ... ruby has discovered the value of whitespaces... but in the wrong place!. Whitespaces are important in HTML and I am not convinced haml allows you insert whitespaces in html. Anyway, it is a nice idea but not fo newbies. I do not understand why this syntax: .item{:id = expr}= item.body

[web2py] web2py online book doesn't display chapter numbers

2011-12-20 Thread Yarin
The current web2py online book displays no chapter numbers either in the table of contents or in the chapter heading itself. Makes navigation difficult.

Re: [web2py] web2py online book doesn't display chapter numbers

2011-12-20 Thread António Ramos
Also a Next Previous link in the end of each page would avoid going back to the top of the page to select other chapters 2011/12/20 Yarin ykess...@gmail.com The current web2py online book displays no chapter numbers either in the table of contents or in the chapter heading itself. Makes

[web2py] Re: haml and sass

2011-12-20 Thread Ross Peoples
That's funny :) I didn't go very deep into the haml docs. I just saw the part about: #wrapper .header Title text .body Text for the body And realized it would be quicker to write than: div id=wrapper div class=headerTitle text/div div class=bodyText for the body/div /div

[web2py] How to submit a patch?

2011-12-20 Thread Cliff
Can someone point to the instructions for submitting a patch? I would like to submit a patch for the following code in sqlhtml.py (starting line 1305) so it will be considered and either rejected or accepted. The change, in my opinion, improves the usability of the grid search panel by providing

[web2py] Re: new book now available in HTML (english, japanese, italian)

2011-12-20 Thread mikech
Will there be an ebook version for purchase. I want to contribute towards the effort, but don't want a physical book. Either that or a donate button, though I realize that wasn't to lucrative in the past. Mike

[web2py] Re: How to submit a patch?

2011-12-20 Thread Massimo Di Pierro
Can you please email me the code below as an attachment? massimo On Dec 20, 10:41 am, Cliff cjk...@gmail.com wrote: Can someone point to the instructions for submitting a patch? I would like to submit a patch for the following code in sqlhtml.py (starting line 1305) so it will be considered

[web2py] Re: Solidform: key-error

2011-12-20 Thread kenji4569
Thanks for your feedback. I'm relieved:) On 12月20日, 午後5:15, Johann Spies johann.sp...@gmail.com wrote: Dear Kenji, The form is working now without the previous problems.  Thank you very much for making life easier for us! Regards Johann -- Because experiencing your loyal love is better

[web2py] Re: computed field or is_in_db(query...

2011-12-20 Thread Jose Carlos Junior
Solved..Thanks alot... dear Richard Vézina On 19 dez, 21:42, Jose Carlos Junior josec...@gmail.com wrote: Good idea...    I gonna try thisas soon as possible Thanks alot... On 19 dez, 17:44, Richard Vézina ml.richard.vez...@gmail.com wrote: Carlos, If you really not

[web2py] Web Development Introduction Based On Web2py

2011-12-20 Thread ma...@rockiger.com
I published the first 3 chapters of my web development tutorial at http://killer-web-development.com It's aimed at total web development beginners and uses web2py as framework. The idea was to write a web development tutorial based on web2py, because web2py is the easiest to use web

Re: [web2py] Web Development Introduction Based On Web2py

2011-12-20 Thread Alfonso de la Guarda
Hi, Great! Thanks However some missing links, example: http://killer-web-development.com/section/2/2 Saludos, Alfonso de la Guarda Centro Open Source(COS) http://www.cos-la.net http://alfonsodg.net Twitter: @alfonsodg Redes sociales: alfonsodg    Telef.

[web2py] Re: haml and sass

2011-12-20 Thread Massimo Di Pierro
Just for fun import re R=re.compile('^[\w\-\:]+') def parse(text,context = None): context = context or {} stack = [] for line in text.split('\n')+['%END']: if not line: continue is_tag = False tag = 'div' classes = [] ids = []

Re: [web2py] Re: haml and sass

2011-12-20 Thread Vasile Ermicioi
my opinion is that html is not too hard too read, so I don't think that adds any value from their tutorial strong class=code id=messageHello, World!/strong %strong{:class = code, :id = message} Hello, World! div class='item' id='item%= item.id %' %= item.body % /div .item{:id = item#{item.id}}=

[web2py] Customer importer and GAE and apptrace

2011-12-20 Thread howesc
Greetings fine peoples, I'm trying to use apptrace (http://code.google.com/p/apptrace/wiki/UsingApptrace) to find memory leaks in my web2py GAE application. (i know they are there cause i get requests killed for out of memory). I followed the instructions for installing apptrace and i can

Re: [web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Martin Weissenboeck
Thanks for all hints, I have found some new ideas and I will try a ot of new things. But -may I describe my problem in detail? There should be a website for persons who want to apply for a job. My present solution: Table person contains name, date of birth, phone number and so on. Table cv

Re: [web2py] Re: haml and sass

2011-12-20 Thread Alvaro Lizama Molina
I prefer support for sass or scss or less or stylus than support for haml, i not spent time coding in html directly. 2011/12/20 Vasile Ermicioi elff...@gmail.com my opinion is that html is not too hard too read, so I don't think that adds any value from their tutorial strong class=code

Re: [web2py] Re: How to submit a patch?

2011-12-20 Thread Alvaro Lizama Molina
Send a pull request in github, btw should be apply a branch model for work in github, for a best fork flow. http://nvie.com/posts/a-successful-git-branching-model/ Thus it would be more comfortable send patchs. 2011/12/20 Massimo Di Pierro massimo.dipie...@gmail.com Can you please email me

[web2py] Re: Upload in GAE, SQLFORM.factory, multiple tables

2011-12-20 Thread Murray3
Did this get solved, as I am experiencing the same problem with SQLFORM.factory not saving images to datastore? using latest release of web2py. On Nov 19, 4:04 pm, Bruno Rocha rochacbr...@gmail.com wrote: On Sat, Nov 19, 2011 at 2:02 PM, Bruno Rocha rochacbr...@gmail.com wrote: *if

[web2py] Re: Upload in GAE, SQLFORM.factory, multiple tables

2011-12-20 Thread Massimo Di Pierro
where is the typo? which file? On Nov 19, 10:04 am, Bruno Rocha rochacbr...@gmail.com wrote: On Sat, Nov 19, 2011 at 2:02 PM, Bruno Rocha rochacbr...@gmail.com wrote: *if request.env.web2py_runtime_gae: * this was a typo when writing the email, actually is *if **NOT**

[web2py] Re: Upload in GAE, SQLFORM.factory, multiple tables

2011-12-20 Thread Massimo Di Pierro
where is the typo? which file? On Nov 19, 10:04 am, Bruno Rocha rochacbr...@gmail.com wrote: On Sat, Nov 19, 2011 at 2:02 PM, Bruno Rocha rochacbr...@gmail.com wrote: *if request.env.web2py_runtime_gae: * this was a typo when writing the email, actually is *if **NOT**

Re: [web2py] Re: computed field or is_in_db(query...

2011-12-20 Thread Richard Vézina
Your welcome :) Richard On Tue, Dec 20, 2011 at 1:15 PM, Jose Carlos Junior josec...@gmail.comwrote: Solved..Thanks alot... dear Richard Vézina On 19 dez, 21:42, Jose Carlos Junior josec...@gmail.com wrote: Good idea... I gonna try thisas soon as possible Thanks alot...

[web2py] Re: Customer importer and GAE and apptrace

2011-12-20 Thread howesc
did some more playing around. turns out that if i just reload the page twice it works. not sure why, but for a memory test that is ok. though it disappointingly seems that this tool does not work for us. i can't get any data out of it (maybe i just don't know how to use it) cfh

[web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread apple
OK so each person who has zero or more cvrows and you want to show this on one screen. But I am still not quite clear when you refer to a submit button for the grid. Do you mean the grid has an add button and each row has view/edit/delete buttons? Assuming the latter then when you change the

Re: [web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Jim Steil
have you looked at SQLFORM.smartgrid? -Jim On 12/20/2011 1:39 PM, Martin Weissenboeck wrote: Thanks for all hints, I have found some new ideas and I will try a ot of new things. But -may I describe my problem in detail? There should be a website for persons who want to apply for a job.

[web2py] Re: generating PDF invoices

2011-12-20 Thread Adi
I'm also trying to figure out the best way to print invoices from a view. My problem is a url at the bottom of a document, which is sent by a browser. In one of the threads someone suggested to remove this line: a:after { content: ( attr(href) ); } from base.css, and I did, but I still see

[web2py] LDAP DAL Adapter Help

2011-12-20 Thread Bruno Lottero
Hello there, Im currently developing an LDAP DAL adapter, so far i´ve been able to bind to a server. Tomorrow i will start to model the methods for the operations (add, search, etc) But, there's a little problem since an ldap URI looks like this ldap://server:port Where should i put the dn

[web2py] Need to update the twitter book example?

2011-12-20 Thread Alan Etkin
It seems that the get tweets example from the book (14.12) is not working anymore: When requesting from the browser's address field this location: http://twitter.com/username?format=json The output is an html page I had to change the address to the twitter rest api search command: Here is the

[web2py] URL Rewriting for an application

2011-12-20 Thread Abhishek Gupta
I am using script/autoroutes.py for the application with following changes : config = ''' server.com /app/default ''' def auto_in ... routes += [('^.*:/(?Puser[^\\/\.]+)(?Prest.*)$', '/profile/\guser\grest')] return routes def auto_out... ... routes +=

[web2py] Re: LDAP DAL Adapter Help

2011-12-20 Thread Massimo Di Pierro
did you look into gluon/contrib/login_methods/ldap_auth.py ? there is a request for additional features http://code.google.com/p/web2py/issues/detail?id=531 would be great if you could help with the issue. Massimo On Dec 20, 5:13 pm, Bruno Lottero brunoelott...@gmail.com wrote: Hello there,

Re: [web2py] Re: json with https?

2011-12-20 Thread Khamlichi khalil
 JSON is just like HTML, its transfered by http protocol or its encrypted version https, only if you get it from a call thru websocket then you would be on websocket protocol which ofcourse both sides must support.. Sent from Samsung tablet Ross Peoples ross.peop...@gmail.com wrote: I do it

[web2py] Re: LDAP DAL Adapter Help

2011-12-20 Thread Bruno Lottero
I'll dig into it, but additional mappings doesn´t fit my needs as i need to do (search, add, delete) and other operations.

[web2py] Re: Overriding Grid/Smartgrid's 'Edit/Delete/View'

2011-12-20 Thread Adi
is it possible to remove some of the related tables' buttons?

Re: [web2py] Re: Overriding Grid/Smartgrid's 'Edit/Delete/View'

2011-12-20 Thread Jim Steil
Yes, you can pass a list of the tables you want to display through the linked_tables parameter. grid = SQLFORM.smartgrid(db.customer, linked_tables=['note', 'order']) Then it will only include buttons for the tables you've listed. -Jim On 12/20/2011 7:08 PM, Adi wrote: is it possible to

Re: [web2py] Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Nik Go
Martin, I have a feeling that what you're looking is multi-form updates (try to search for that term) where a parent record (your person) and child record (your cvrows) are updated simultaneously. On Wednesday, December 21, 2011, Jim Steil wrote: have you looked at SQLFORM.smartgrid?

[web2py] Re: Overriding Grid/Smartgrid's 'Edit/Delete/View'

2011-12-20 Thread Cliff
You can learn more here: http://web2py.com/books/default/chapter/29/7#SQLFORM.grid-and-SQLFORM.smartgrid-(experimental) On Dec 20, 8:57 pm, Jim Steil j...@qlf.com wrote: Yes, you can pass a list of the tables you want to display through the linked_tables parameter. grid =

[web2py] Re: generating PDF invoices

2011-12-20 Thread Cliff
The browser controls the content of those headers and footers, according to user settings. I don't think there is a way to override it. If you want total control you need to present a pdf. On Dec 20, 5:36 pm, Adi adnan.smajlo...@gmail.com wrote: I'm also trying to figure out the best way to

[web2py] Re: deployment problem with mod_wsgi

2011-12-20 Thread Adi
if it's going to make things more simple, and you want to avoid figuring out the installation and setting up server, i suggest using fluxflex.com. worked perfectly for me, and then later on i'll focus on vps, but will at least know the application works fine. I'm not related to that company,

[web2py] Developers - Vancouver, BC area

2011-12-20 Thread Bruce Wade
Hi, Are there any developers located in BC looking for employment, full time or project work? We are going to be migrating an application already making good money from pyramid to web2py. Reasons: Web2py is easier to learn, provides a lot of functionality we have been writing from scratch, and

[web2py] Re: Web Development Introduction Based On Web2py

2011-12-20 Thread Rahul
This site [http://killer-web-development.com ] isn't accessible. Rahul On Dec 20, 11:35 pm, Alfonso de la Guarda alfons...@gmail.com wrote: Hi, Great! Thanks However some missing links, example:http://killer-web-development.com/section/2/2 Saludos,

[web2py] Re: Developers - Vancouver, BC area

2011-12-20 Thread Anthony
Is it a public site? If so, is it listed on http://web2py.com/poweredby/? Anthony

[web2py] Re: Developers - Vancouver, BC area

2011-12-20 Thread Anthony
Oh, sorry, you said you *will *be migrating it -- I guess we'll have to wait to list it. :-) On Wednesday, December 21, 2011 12:22:56 AM UTC-5, Anthony wrote: Is it a public site? If so, is it listed on http://web2py.com/poweredby/? Anthony

Re: [web2py] Re: haml and sass

2011-12-20 Thread Anthony
On Tuesday, December 20, 2011 2:40:15 PM UTC-5, nekrox wrote: I prefer support for sass or scss or less or stylus +1

[web2py] Re: Need to update the twitter book example?

2011-12-20 Thread Anthony
Yeah, I had an app using the old method -- looks like Twitter recently dropped support for that method. I guess we should update the book. On Tuesday, December 20, 2011 6:25:19 PM UTC-5, Alan Etkin wrote: It seems that the get tweets example from the book (14.12) is not working anymore:

[web2py] Re: SQLForm.grid - How do I use it properly?

2011-12-20 Thread Rahul
Hi Johann, Here are the details --- I have two tables - I need to grab the id of a contact from first table and use it to update a field status with values as Sent, Request etc. in another table id being the same in both the table. Now in the below code, Send Request is just a button.

Re: [web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Martin Weissenboeck
I will answer inline: 2011/12/20 apple simo...@gmail.com OK so each person who has zero or more cvrows and you want to show this on one screen. But I am still not quite clear when you refer to a submit button for the grid. Do you mean the grid has an add button and each row has

Re: [web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Martin Weissenboeck
2011/12/20 Jim Steil j...@qlf.com have you looked at SQLFORM.smartgrid? Yes, but I did not find a solution for this task. -Jim On 12/20/2011 1:39 PM, Martin Weissenboeck wrote: Thanks for all hints, I have found some new ideas and I will try a ot of new things. But -may I

Re: [web2py] Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Martin Weissenboeck
Ok, thank you - I will try it. 2011/12/21 Nik Go nikolai...@gmail.com Martin, I have a feeling that what you're looking is multi-form updates (try to search for that term) where a parent record (your person) and child record (your cvrows) are updated simultaneously. On Wednesday,

Re: [web2py] Re: websocket for python

2011-12-20 Thread Khalil KHAMLICHI
Hi, Does this mean that all web2py and comet_server when lauched share the same environement ? For example Can we have access to session data from comet_server? To the dal ? This is as impprtant as being able to push data to client browser. Thanks for the wonderful new web version of the book, it

[web2py] Re: Web Development Introduction Based On Web2py

2011-12-20 Thread Gerd
Hi! For me it is reachable Regards Gerd

Re: [web2py] Web Development Introduction Based On Web2py

2011-12-20 Thread chandrakant kumar
very nice effort, awaiting further chapters. On Wed, Dec 21, 2011 at 12:03 AM, ma...@rockiger.com rocki...@googlemail.com wrote: I published the first 3 chapters of my web development tutorial at http://killer-web-development.com It's aimed at total web development beginners and uses web2py