Re: [web2py] Re: plugin_wiki: who is authorized?

2010-09-04 Thread Johann Spies
can you check the value plugin_wiki_editor in the controller? Thanks. Changing the group 'editor' to 'plugin_wiki_editor' helped. Regards Johann --     Be not deceived; God is not mocked: for whatsoever a      man soweth, that shall he also reap.                                   Galatians

[web2py] Re: web2py Africa

2010-09-04 Thread hcvst
Got to give credit to GAE too - and with w2p on top, love it. True of course, but it'd be great to meet a fellow user. So if you're in Joburg, let me know. Beers are on me. HC On Sep 4, 5:09 am, Alexey Nezhdanov snak...@gmail.com wrote: These times fans don't need to be around the place where

[web2py] HTML Helper, INPUT, Javascript

2010-09-04 Thread Kenneth
Hello, how do I use HTML Helper to get make a th and checkbox tag. THINPUT type=checkbox name=check_all onClick=return popup(this, 'notes')/th The TH and checkbox is easy, but where do I put the onClick part? Kenneth

[web2py] Re: HTML Helper, INPUT, Javascript

2010-09-04 Thread mdipierro
TH(INPUT(_type=checkbox, _name=check_all, _onclick=return popup(this,'notes'))) On Sep 4, 8:25 am, Kenneth kenneth.t.lundst...@gmail.com wrote: Hello, how do I use HTML Helper to get make a th and checkbox tag. THINPUT type=checkbox name=check_all onClick=return popup(this, 'notes')/th

[web2py] Re: Expando and Polymodel on GAE?

2010-09-04 Thread mdipierro
Can you help testing polymodel? In trunk: db=DAL('gae') db.define_table('contact',Field('address'), polymodel=True) db.define_table('person',Field('first_name'), polymodel=db.contact) db.define_table('company',Field('business_name'), polymodel=db.contact) db.person.insert(first_name=John,

[web2py] icon in menu

2010-09-04 Thread Frank
hi, I have code, response.menu_index = [ [TAG[''](IMG(_src=URL(request.application,'static','home.png'),'title'), False, URL(request.application,'default','facepda'), [ [T('login'), False, URL(request.application,'default','user/login')],

[web2py] image tabs problem

2010-09-04 Thread Frank
Now, I'm trying the image tabs, I have some findings want to confirm with others, when I use six to seven image tabs, it's no error showing in WAMP, but if I run the program in web2py eviroment, very strange, the images tabs shows random numbers of image tabs, it rarely show all the image tabs.

[web2py] Re: view SQL query

2010-09-04 Thread Francisco Costa
for ubuntu machines try this: http://www.howtogeek.com/howto/database/monitor-all-sql-queries-in-mysql/ mdipierro wrote: You cannot see all of them, You can see the last one print db._lastdb perhaps now that we have app logging capabilities we should add teh ability to log all queries.

Re: [web2py] Re: HTML Helper, INPUT, Javascript

2010-09-04 Thread Kenneth Lundström
Thank you Massimo again for a very fast reply. Kenneth TH(INPUT(_type=checkbox, _name=check_all, _onclick=return popup(this,'notes'))) On Sep 4, 8:25 am, Kennethkenneth.t.lundst...@gmail.com wrote: Hello, how do I use HTML Helper to get make a th and checkbox tag. THINPUT type=checkbox

[web2py] Re: Parent - Child Models in a single form

2010-09-04 Thread mart
This a good and interesting problem ;) What I knew about sub-forms was done using XFA - xml forms architecture. This was designed to offer intelligence to forms (I.e. as is, on the web and, of course, in PDF). But... that was a beast in itself. I'm not too sure how to go about this with web2py,

[web2py] A Reset button using either Crud or SQL FORM

2010-09-04 Thread b vivek
Hi ! The SQL Form and the Crud both are really good, but while generating forms is there any way , they generate a reset button too. Thanks Vivek

[web2py] Problem loading http://groups.google.com/group/web2py

2010-09-04 Thread Anthony
Over the past few days, I've had a problem loading the URL http://groups.google.com/group/web2py (i.e., the web2py Google Groups home page). Every time I try that URL, it takes at least 30 seconds or more to get a response. After some exploration, I discovered the same problem when clicking the

[web2py] Re: Date field represent not respected when for validation fails [SOLVED]

2010-09-04 Thread smg
Sorry, I forgot to add 'old_value' to widget. My fault. Now all works right.

[web2py] Re: A Reset button using either Crud or SQL FORM

2010-09-04 Thread mr.freeze
Not built in (that I know of) but you can add one easily: def index(): form = SQLFORM.factory(Field('thing'),Field('stuff')) submit = form.element('input',_type='submit') reset = INPUT(_type='button',_onclick='jQuery(this).parents(form:first) [0].reset()',_value='Reset')

[web2py] Re: Problem loading http://groups.google.com/group/web2py

2010-09-04 Thread mdipierro
I am seeing this too today. I have two problems myself with google group: - On my home computer since last week, under discussions, does not list the name of last user to respond to a thread but the name of person who opened the thread. At office works fine (same os, same browser). - I do not seem

Re: [web2py] Re: A Reset button using either Crud or SQL FORM

2010-09-04 Thread b vivek
Thanks Mr. Freeze. But this is how I ended it up doing def createblog(): ok so this presents the interface for entering data form=SQLFORM(db.blog) thesubmitdiv=form.element('#submit_record__row') thesubmitdiv[1].append(INPUT(_type='reset',_value=Reset)) return

Re: [web2py] Re: Hi a beginner's question

2010-09-04 Thread b vivek
Yes .. looks like there was something wrong in my code the other day.. Am using it today for something else and it works fine.. sorry for the trouble.. and yeah thanks mdipierro for replying! On Fri, Sep 3, 2010 at 10:06 PM, Matias matiassu...@gmail.com wrote: El 03/09/10 17:09, mdipierro

[web2py] Re: A Reset button using either Crud or SQL FORM

2010-09-04 Thread mr.freeze
Doh! I use jQuery so much that I forget html actually has some built in features. On Sep 4, 3:35 pm, b vivek bvivek1...@gmail.com wrote: Thanks Mr. Freeze. But this is how I ended it up doing def createblog():     ok so this presents the interface for entering data    

[web2py] Re: Problem loading http://groups.google.com/group/web2py

2010-09-04 Thread weheh
I just had this same issue with the web2py google group, but not with another group that I follow. Strange.

[web2py] AJAX issue with '#' in URL

2010-09-04 Thread weheh
I have a controller that takes an argument, which is the id of a row in mytable. If the arg is present, then the row is displayed at the top of the page and all the rows are displayed at the bottom of the page. Otherwise, the first item in mytable is displayed. The rows at the bottom of the page

[web2py] Re: very straaaaaaange [Closed]

2010-09-04 Thread weheh
I wiped my db clean and rebuilt from scratch and everything is working OK now. Strange, but closed. On Sep 1, 9:59 am, mdipierro mdipie...@cs.depaul.edu wrote: Just make sure you use trunk or latest stable, since XML was redefined recently. Massimo On Sep 1, 8:29 am, weheh

[web2py] Re: Error in Rating Plugin????

2010-09-04 Thread Jurgis Pralgauskis
Now why isn't the rating plugin showing for the other records on the screen??? the problem for me was, that it's ID was the same for all rating DIVS just make it dependant on the given r.id in plugin code and should work ok sth like div_id = 'rating_%s_%s' % (tablename, record_id)

[web2py] Cascading dropdown widget

2010-09-04 Thread elfuego1
Hi, I've implemented on my page cascading dropdown widget from http://web2pyslices.com/main/slices/take_slice/86. It allows you to select state, city, zipcode data using dropdowns. BUT it saves into database value only from the last dropdown. I'd like to store in my db values (id) from all three

[web2py] Can't send tweet from my application

2010-09-04 Thread Yannick
Hello Mate, I used to send tweet through my application successfully without any trouble but today I keep getting an 401: Unauthorized when I send a tweet from my application... Here is the code : def postTweets(): try: import urllib, urllib2, base64 import

[web2py] Re: Cascading dropdown widget

2010-09-04 Thread mr.freeze
You don't need to save the city and state since they are looked up from existing tables. But if you really want to, request.vars will contain state_name and city_name values that you are looking for. On Sep 4, 5:21 pm, elfuego1 elfue...@gmail.com wrote: Hi, I've implemented on my page

[web2py] Re: AJAX issue with '#' in URL

2010-09-04 Thread mdipierro
what is the code that generates the url for the ajax callbask? On Sep 4, 4:45 pm, weheh richard_gor...@verizon.net wrote: I have a controller that takes an argument, which is the id of a row in mytable. If the arg is present, then the row is displayed at the top of the page and all the rows

[web2py] SQLFORM + Autocomplete Error

2010-09-04 Thread Tito Garrido
Hi Folks, I'm trying to validade a form before sending it. There is a hidden field and an autocomplete field on the form and there is what I get: % repr(invalid_fieldnames) SyntaxError: invalid field names: ['_autocomplete_nome_aux'] *Function argument list: (self=Table {'ALL':

[web2py] Re: Expando and Polymodel on GAE?

2010-09-04 Thread Dave
I tested this, and it does give all contacts when using contacts = db(db.contact.id0).select() Unfortunately, using person = db(db.person.id0).select() also returns all the contacts. I think the intended behavior is to just return the contacts that are also a person (as well as those that are

[web2py] Re: AJAX issue with '#' in URL

2010-09-04 Thread weheh
DIV( A(r.x.y, _href='#', _id='y-%d-%d'%(z_id,r.x.id), _onclick=ajax('update_y/%s/%s',['y-%d-%d'],':eval');%\ (z_id,r.x.id,z_id,r.x.id), ), _class='y', ), On Sep 4, 6:51 pm, mdipierro

[web2py] Re: Can't send tweet from my application

2010-09-04 Thread mdmcginn
I don't know if this is the solution, but Twitter is now requiring OAuth instead of the previous Basic Auth. They've warned that many apps would stop working. See http://dev.twitter.com/pages/basic_to_oauth -- Michael McGinnis On Sep 4, 5:39 pm, Yannick ytchatch...@gmail.com wrote: Hello Mate,

[web2py] Where to suggest edits for new book?

2010-09-04 Thread weheh
Thank you so very much for the new book MDP! It is wonderful. I have found minor typos and grammar issues and some things of more consequence, but I can't make comments in the doc like I used to be able. Where do you want the community to make such comments?

[web2py] Re: Where to suggest edits for new book?

2010-09-04 Thread mdipierro
yes. Please login and then email me. I will make you editor. On Sep 4, 10:49 pm, weheh richard_gor...@verizon.net wrote: Thank you so very much for the new book MDP! It is wonderful. I have found minor typos and grammar issues and some things of more consequence, but I can't make comments in

[web2py] TAGs

2010-09-04 Thread weheh
- How to get a list of all elements in an html string? - How to specify my own render routine like markmin_serializer markdown_serializer? Where to put this code? Would it be from modules include my_serializer and my_html_string.flatten(render=my_serializer) ?

[web2py] Re: Where to suggest edits for new book?

2010-09-04 Thread weheh
Hi Massimo - I have tried logging in with my Google account but couldn't I got a popup window that loaded a blank page, and then nothing. I don't have accounts with the other services, so need the Google auth. On Sep 4, 11:54 pm, mdipierro mdipie...@cs.depaul.edu wrote: yes. Please login and

[web2py] web2py on Google App engine

2010-09-04 Thread b vivek
Hii, Yes there has been enough written on this , and am sure I am definitely doing something really wrong. So here I go. I just wrote a small app and tried deploying it on appspot.I did the below in order 1. changed app.yaml's first line to the appidentifier registered with GAE 2.python

[web2py] Re: web2py on Google App engine

2010-09-04 Thread b vivek
Please have a look at the skip_files section of my app.yaml skip_files: | ^(.*/)?( (app\.yaml)| (app\.yml)| (index\.yaml)| (index\.yml)| (#.*#)| (.*~)| (.*\.py[co])| (.*/RCS/.*)| (\..*)| ((admin|examples|welcome)\.tar)| #(applications/(admin|examples)/.*)|

[web2py] Re: web2py on Google App engine

2010-09-04 Thread b vivek
Ok I got it .. I have to use https instead of http! On Sun, Sep 5, 2010 at 10:47 AM, b vivek bvivek1...@gmail.com wrote: Please have a look at the skip_files section of my app.yaml skip_files: | ^(.*/)?( (app\.yaml)| (app\.yml)| (index\.yaml)| (index\.yml)| (#.*#)| (.*~)|