[web2py:36196] Re: js functions from controller

2009-11-30 Thread haftish21
Dear md, this looks hopefully the right solution, but I'm getting the ff AttributeError repeatedly, >>>'NoneType' object has no attribute 'append' in f='whatever.js'', can I put the url of the online js library or the file path by saving it in my directory. -- You received this message because

[web2py:36197] Re: Plugin Central

2009-11-30 Thread selecta
thanks that was it when I try to submit my plugin and I don't choose a category like "food" I get "value not in database" for each category on "Publish a new version" there is a field called "Number:" it's not clear what this is supposed to mean I would call it "version number" instead on uploading

[web2py:36198] Re: Plugin Central

2009-11-30 Thread selecta
in the cotroller plug i see 0 Responses Comment RSS Feed # import code for encoding urls and generating md5 hashes import urllib, hashlib # Set your variables here email = "some...@somewhere.com" default = "http://www.somewhere.com/ homsar.jpg" size = 40 # construct the url gravatar_url = "http://

[web2py:36199] invalid request/controller handle

2009-11-30 Thread emmanu simo
If a user put a bad Url , I have an INVALID REQUEST/CONTROLLER I want to automaticly redirect that request to a home page or a last page done. how can I do it ? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email t

[web2py:36200] ext js

2009-11-30 Thread davidjensen
Hi everyone, I have seen mention many times on this group of jquery. However, ext js looks very powerful and there are lots of books on it. What do you think of ext js. Apparently, it has a connection with gwt. Is it part of pyjamas? Thanks -- You received this message because you are subscribe

[web2py:36201] Re: js functions from controller

2009-11-30 Thread mdipierro
You can do: def index(): response.files.append('http://...') script=SCRIPT('...js goes here...') return dict(script=script) If you get an error in response.files.append(...) you have an old web2py version. ;-) On Nov 30, 2:48 am, haftish21 wrote: > Dear md, > this looks hopefully t

[web2py:36202] Re: invalid request/controller handle

2009-11-30 Thread mdipierro
Read the file routes.example.py You can do what you need by renaming this file route.py and customizing routes_onerror. Massimo On Nov 30, 3:55 am, emmanu simo wrote: > If a user put a bad Url , I have an INVALID REQUEST/CONTROLLER > I want to  automaticly redirect that request to a home page o

[web2py:36203] Re: ext js

2009-11-30 Thread mdipierro
I am going to a talk on Django and extjs next week. I will report back. Massimo On Nov 30, 6:17 am, davidjensen wrote: > Hi everyone, > > I have seen mention many times on this group of jquery. However, ext > js looks very powerful and there are lots of books on it. What do you > think of ext js

Re: [web2py:36204] Re: invalid request/controller handle

2009-11-30 Thread Simo
where (in with directory) is that file ? On Mon, Nov 30, 2009 at 3:18 PM, mdipierro wrote: > Read the file routes.example.py > > You can do what you need by renaming this file route.py and > customizing routes_onerror. > > Massimo > > On Nov 30, 3:55 am, emmanu simo wrote: > > If a user put a

[web2py:36205] Re: Off-Topic: Question about blog archive links

2009-11-30 Thread Victor
IMHO, It's better to use categories because people would generally visit your blog looking for posts on a topic (JQuery, Web2py, Photoshop etc), if you had an "Older/Newer posts" link, then thats fine. On Nov 29, 10:43 am, Thadeus Burgess wrote: > What is the benefit or reason for having date-

[web2py:36206] GAE models in Web2py

2009-11-30 Thread Victor
Hi Guys, I really appreciate your help in the past. I have a another quick question. Is it possible to use GAE models in model.py and then use SQLFactory to generate and process the forms that are generated. Cheers -- You received this message because you are subscribed to the Google Groups "w

[web2py:36207] Re: GAE models in Web2py

2009-11-30 Thread mdipierro
You can use native GAE models In this case you can use SQLFORM.factory() but you cannot use SQLFORM () and you cannot use DAL syntax on GAE models. On Nov 30, 8:34 am, Victor wrote: > Hi Guys, I  really appreciate your help in the past. I have a another > quick question. Is it possible to use GAE

Re: [web2py:36208] Re: Plugin Central

2009-11-30 Thread Thadeus Burgess
*Value not in database errors. -> Should have been fixed in trunk, not sure of a way around it except for just not using Validators all around. *Version Number -> good idea. *Filename is expected to be "web2py.plugin.*.w2p" This is what you get when you "pack" the plug-in individually. *Code for

Re: [web2py:36209] Re: Plugin Central

2009-11-30 Thread Thadeus Burgess
Thank you everybody for taking a look at this and testing it for me! Hopefully after cleaning up a few things it will launch soon. List of still to be implemented *Rating System (tied in with comments) *Links on plug meta info (author, category, tags) *Browse by author Some questions for the com

Re: [web2py:36210] Re: Off-Topic: Question about blog archive links

2009-11-30 Thread Thadeus Burgess
I was just curious why most blogs have archive then? Is it for S.E.O. ? If you have a tagging system, would you really need categories?, since tags are basically a "category cloud" DO you really need both, how do categories interact with tags? -Thadeus On Mon, Nov 30, 2009 at 8:32 AM, V

[web2py:36211] Library Management System

2009-11-30 Thread mdipierro
I discovered this: http://code.google.com/p/library-management-system-2/ If the author is here and want the project linked on appliances, please just ask. Massimo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send ema

Re: [web2py:36212] Re: ext js

2009-11-30 Thread Thadeus Burgess
ext js is nice, however their more advanced features cost money? I like jquery because there is a plug-in for almost everything, and its so easy to perform plug-in development, I was able to create a couple of jquery plugins and I have absolutely no javascript experience :) Though the money factor

[web2py:36213] TypeError: slice indices must be integers or None or have an __index__ method

2009-11-30 Thread cadrentes
I'm not sure this is the right forum for this discussion, any guidance in appreciated. After upgrading to 1.72.3 I get the following error in one of my applications: "TypeError: slice indices must be integers or None or have an __index__ method" What should I be looking at to fix this. The bug r

[web2py:36214] idea: web2py group on reddit

2009-11-30 Thread Doxaliber
Sometime ago I've read some criticism about google groups and someone proposed to create a forum for web2py. I've a different idea. We could create a web2py group on reddit and use it both as a source of news on the web2py world and also as a forum (do you know ask reddit or Ask HN?). Imho reddit

[web2py:36215] Re: js functions from controller

2009-11-30 Thread haftish21
True, I got an old version of web2py. The latest version is not running, I don't know whose problem that is. While I double click web2py.exe, it pops up & disappears. Have u checked it lately? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To p

[web2py:36216] Re: TypeError: slice indices must be integers or None or have an __index__ method

2009-11-30 Thread mdipierro
Can you show us a could of lines from the code that cause the error? What version are you upgrading from? On Nov 30, 9:53 am, cadrentes wrote: > I'm not sure this is the right forum for this discussion, any guidance > in appreciated.  After upgrading to 1.72.3 I get the following error > in one o

[web2py:36217] Re: ext js

2009-11-30 Thread Timbo
ExtJS is not part of Pyjamas or GWT. It is a very advanced and powerful toolkit but doesn't compare well with jQuery (which is just a library). They serve different purposes. jQuery is for websites while ExtJS is for web-applications. There is some overlap, but most people don't need or want a

[web2py:36218] Re: idea: web2py group on reddit

2009-11-30 Thread mdipierro
>From a technical point of view this would be a great idea. From a practical point of view it is not because: a) the reddit croud is very unfriendly to web2py b) reddit threads both "web2py" and me as spam. I have had problems posting messages on the topic recently. Some of the moderators are helpf

[web2py:36219] Re: js functions from controller

2009-11-30 Thread mdipierro
Never heard of this before. What os, what are you upgrading from? Anybody else having this problem? Can you try running from source? Massimo On Nov 30, 10:33 am, haftish21 wrote: > True, I got an old version of web2py. The latest version is not > running, I don't know whose problem that is. W

Re: [web2py:36220] Re: idea: web2py group on reddit

2009-11-30 Thread salingrosso
Spam? This is really a bad thing! But I think that the "spam" problem exists on some group and not in all reddit system. Groups are moderated by the creator and some people chosen by the creator itself, so I don't think that we will have problems if we create our own group web2py group moderated by

Re: [web2py:36221] Re: ext js

2009-11-30 Thread Thadeus Burgess
I attempted to get into Dojo, to use their Dijit and Dojox libraries, however during comparing the two, I can accomplish everything Dojo does with jQuery and a couple of plug-ins, with documentation about it to boot :) This is why django does not include a javascript library... everybody has diffe

Re: [web2py:36222] Re: Plugin Central

2009-11-30 Thread Thadeus Burgess
Another question.. Is the design functional? I know there is pretty, and then there is functional, and then there is the balance. Ideas on the design could be changed to allow for more functionality? -Thadeus On Mon, Nov 30, 2009 at 9:27 AM, Thadeus Burgess wrote: > Thank you everybody for t

[web2py:36223] Unicode error using mail.send() from tools.py

2009-11-30 Thread Alex
mail.send(\'m...@gmail.com\', \'subject\', body)\n File "/var/www/ web2py/gluon/tools.py", line 271, in send\nattachment.attach (email.MIMEText.MIMEText(text.encode(encoding)))\nUnicodeDecodeError: \'ascii\' codec can\'t decode byte 0xd0 in position 30: ordinal not in range(128)\n' This erro

Re: [web2py:36224] Unicode error using mail.send() from tools.py

2009-11-30 Thread Thadeus Burgess
The reason is because there are non-latin characters in the text body. Where are you getting your data source? Is it possible to use UTF-8 encoded characters instead of ASCII? Are you attempting to pass a different encoding scheme to the Mail object? Can we get some code that you are using? -Th

[web2py:36225] Re: Unicode error using mail.send() from tools.py

2009-11-30 Thread Alex
My code is very simple: def index(): response.flash = "Hello"; form = SQLFORM(db.requests) if form.accepts(request.vars): response.flash = 'Thanks. We will contact you soon.' body = '' for var in form.vars: body = body + var + ':\r\n' + str(form.var

[web2py:36226] Re: TypeError: slice indices must be integers or None or have an __index__ method

2009-11-30 Thread cadrentes
Sure, This is the "cookbook" application lightly modifed to take notes on case followup. I believe I had it running on 1.67. I think this is where it is hanging: def new_sda(): form=SQLFORM(db.sda,fields= ['date','fidname','vetname','status','acctdue_at_513',\ '

[web2py:36227] Re: Unicode error using mail.send() from tools.py

2009-11-30 Thread mdipierro
You should just be able to do mail.sent(,encoding='latin1') or whatever the encoding is. It would be best just to make sure you pass utf8 strings to web2py. On Nov 30, 1:09 pm, Alex wrote: > My code is very simple: > > def index(): >     response.flash = "Hello"; >     form = SQLFORM(db.req

[web2py:36228] Re: TypeError: slice indices must be integers or None or have an __index__ method

2009-11-30 Thread mdipierro
I cannot reproduce the problem. Can you post the complete traceback? Which version of web2py are you running? which os? On Nov 30, 1:09 pm, cadrentes wrote: > Sure, > This is the "cookbook" application lightly modifed to take notes on > case followup.  I believe I had it running on 1.67.  I think

[web2py:36229] Re: TypeError: slice indices must be integers or None or have an __index__ method

2009-11-30 Thread mdipierro
I cannot reproduce the problem. Can you post the complete traceback? Which web2py version? source or binary? which os? On Nov 30, 1:09 pm, cadrentes wrote: > Sure, > This is the "cookbook" application lightly modifed to take notes on > case followup.  I believe I had it running on 1.67.  I think

[web2py:36230] In case your app needs an audit trial

2009-11-30 Thread mdipierro
http://www.web2pyslices.com/main/slices/take_slice/35 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.co

[web2py:36231] Re: idea: web2py group on reddit

2009-11-30 Thread Julio
Richard and myself have been working already for a little bit over a week on a stack overflow "inspired" Q&A website obviously created using web2py and aimed to web2py issues as well as the python community, it will *not* be a SO "clone" since I want to take all the confusing and unnecessary comple

[web2py:36232] Re: send a tweet

2009-11-30 Thread murray3
I am using this function def twitter_post(username,password,message): import urllib, urllib2, base64, gluon.contrib.simplejson args= urllib.urlencode([('status',message)]) headers={} headers['Authorization'] = 'Basic '+base64.b64encode(username +':'+password) request = urllib2.R

Re: [web2py:36233] Re: idea: web2py group on reddit

2009-11-30 Thread salingrosso
Cool, your project seem really interesting! 2009/11/30 Julio > Richard and myself have been working already for a little bit over a > week on a stack overflow "inspired" Q&A website obviously created > using web2py and aimed to web2py issues as well as the python > community, it will *not* be a

[web2py:36235] Re: send a tweet

2009-11-30 Thread mdipierro
They are. If you should us the code we can help more. On Nov 30, 4:55 pm, murray3 wrote: > I am using this function > def twitter_post(username,password,message): >     import urllib, urllib2, base64, gluon.contrib.simplejson >     args= urllib.urlencode([('status',message)]) >     headers={} >  

[web2py:36236] Re: reset password method for auth

2009-11-30 Thread Wes James
I just noticed that the default verify message is: self.messages.verify_email = \ 'Click on the link http://...verify_email/%(key)s to verify your email' Could it be similar to the reset_password message I submitted. They should probably also be "https"? thx, -wes On Mon,

[web2py:36237] Re: reset password method for auth

2009-11-30 Thread mdipierro
thank you. This was needed. I will take a look asap. The only issue is that this new mechanism should be the default if the ath_user table has the new reset_password_field, esle it should revert to the old mechanism (in case people have custom tables) for backward compatibility. I wonder if this c

[web2py:36238] Re: idea: web2py group on reddit

2009-11-30 Thread mdipierro
looking forward to see this. On Nov 30, 4:16 pm, Julio wrote: > Richard and myself have been working already for a little bit over a > week on a stack overflow "inspired" Q&A website obviously created > using web2py and aimed to web2py issues as well as the python > community, it will *not* be a

Re: [web2py:36239] Re: reset password method for auth

2009-11-30 Thread Thadeus Burgess
+1 for the registration_key But the only problem is the registration_key should change each time the password is to be changed ? -Thadeus On Mon, Nov 30, 2009 at 5:58 PM, mdipierro wrote: > thank you. This was needed. I will take a look asap. The only issue is > that this new mechanism shou

[web2py:36240] Re: reset password method for auth

2009-11-30 Thread mdipierro
I think the options should be: registration_key= - '' (login allowed) - '' (login not allowed, email sent, waiting for verification) - 'pending' (login blocked, registration needs approval) - 'blocked' (login blocked, registration disabled) - 'reset::' (login allowed, email sent, waiting for passw

[web2py:36241] Re: Off-Topic: Question about blog archive links

2009-11-30 Thread Victor
Really, I'm no expert, maybe categories are for SEO. However I believe that tags are more searchable, and you can have as many as you want. For example, look at engadget, each post has loads of tags. but fewer categories. I'ld say Categories to allow people look at your information and tags to add

Re: [web2py:36242] Re: invalid request/controller handle

2009-11-30 Thread Thadeus Burgess
web2py/routes.example.py -Thadeus On Mon, Nov 30, 2009 at 8:26 AM, Simo wrote: > where (in with directory) is that file ? > > > On Mon, Nov 30, 2009 at 3:18 PM, mdipierro wrote: > >> Read the file routes.example.py >> >> You can do what you need by renaming this file route.py and >> custom

Re: [web2py:36243] Re: reset password method for auth

2009-11-30 Thread Wes James
I first was using registration_key, but then that needs to change every time a user requests a password reset, registration_key seems to only be there for registration (only once). I wasn't sure how to work with reg_key for password usage too. your other email makes sense if there is a way to di

Re: [web2py:36244] Re: invalid request/controller handle

2009-11-30 Thread Thadeus Burgess
When I use the following in my routes.py routes_onerror = [ ('*/*', '/init/default/index'), ] The process hits 100% cpu and freezes the machine, consumes ram, and spikes the local network. Infinite loop in there somewhere? -Thadeus On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess wrot

Re: [web2py:36245] Re: invalid request/controller handle

2009-11-30 Thread Thadeus Burgess
Just a note, I cannot replicate this on my server, there must be something within my local instance of web2py. -Thadeus On Mon, Nov 30, 2009 at 10:22 PM, Thadeus Burgess wrote: > When I use the following in my routes.py > > routes_onerror = [ > ('*/*', '/init/default/index'), > ] > > The

Re: [web2py:36246] Re: invalid request/controller handle

2009-11-30 Thread Thadeus Burgess
I don't have an /init application :) Massimo, I sent you a patch that passes the requested_uri along to the error handling page. try_redirect_on_error will append the request_uri along to the redirected url. My idea behind this is that if you have a blog, and a person trys going to a non-existent

[web2py:36247] Re: Off-Topic: Question about blog archive links

2009-11-30 Thread mdipierro
I think the difference is that tags are flat, categories are supposed to have a hierarchical structure. Usually categories are set by the administrator, not by users, as in the case of tags. On Nov 30, 9:52 pm, Victor wrote: > Really, I'm no expert, maybe categories are  for SEO. However I > beli

[web2py:36248] Re: js functions from controller

2009-11-30 Thread haftish21
Strange, yah! It is the source I'm complaining ab. The old version runs well by a just click on the web2y.py file? I use ms vista os & upgrading from 1.64. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web

[web2py:36249] Wordpress to Python :)

2009-11-30 Thread Thadeus Burgess
Here ya go, hope this helps convince you to migrate from wordpress to web2py :) import, pass it an open file to the wordpress exported xml/rss. And get back a python dictionary with everything you should need :) Then it is only a matter of inserting the data into your database. http://static.tha

[web2py:36250] Re: js functions from controller

2009-11-30 Thread haftish21
yah, it's very strange. It's the from the source that I'm complaining ab. When I double click, it momentarily disappears, when I type >python web2py.py, I everytime get the ff error: WindowsError: [Error 13] The process cannot access the file because it is being used by another process: 'admin.ta

[web2py:36251] Re: Wordpress to Python :)

2009-11-30 Thread Thadeus Burgess
Since dreamhost insists on trying to run .py files instead of just serve them, here is a working link http://static.thadeusb.com/wordpress2python.txt -Thadeus On Tue, Dec 1, 2009 at 1:36 AM, Thadeus Burgess wrote: > Here ya go, hope this helps convince you to migrate from wordpress to > web2

[web2py:36252] Re: js functions from controller

2009-11-30 Thread haftish21
yah, it's very strange. It's the from the source that I'm complaining ab. When I double click, it momentarily disappears. If it helps, let me paste the exception I receive everytime I type >python web2py.py WARNING: root: no file locking unpacking apps; this may take a few seconds... Traceback (