[web2py] questions about regex_url

2010-01-11 Thread
hi Recently I've been having problem dealing with url like this: http://example.com/app/ctrl/func/%E9%87%91%E5%B1%B1 you can see that the argument to the function is not alphabetical characters. They are generated by encodeURIComponent in javascript from non-English language. In this case, w

[web2py] Re: new in trunk RFC

2010-01-11 Thread KMax
few questions bellow: On 10 янв, 21:38, mdipierro wrote: > There are two new features in trunk. One will probably stay, the other > I do not know: > > 1) Before you could do > >     db.define_table('person',Field('name'),format='%(name)s') >     db.define_table('dog',Field('name'),Field('owner',db

[web2py] Re: Does auth restrict download?

2010-01-11 Thread mdipierro
{{=IMG(src=URL(r=request,c='default',f='mydownload',args= ['folder1','folder2',user_id,filename])}} so then #default controller def mydownload(): filename=os.path.join(request.folder,'uploads',request.args (0),request.args(1),request.args(2)) return response.stream(open(filename,'rb')) On Ja

[web2py] Re: Does auth restrict download?

2010-01-11 Thread weheh
I think I understand what you're trying to do but it's not working for me. Since I've already accessed the db, there's no point in duplicating the access in download in order to get the user_id. Why can't I just pass the user_id to downloads as an arg? #view {{=IMG(src=URL(r=request,c='default',f=

[web2py] Re: Replace form comment with link or icon

2010-01-11 Thread mdipierro
This is even better style: http://www.fijiwebdesign.com/fiji-web-design-blog/css-tooltips-floating-html-elements.html something like this should be in base.css. I would take a patch. On Jan 11, 10:30 pm, mdipierro wrote: > Or better: > > def balloon(comment) >     return DIV('[read more]',SPAN

[web2py] Re: Replace form comment with link or icon

2010-01-11 Thread mdipierro
Or better: def balloon(comment) return DIV('[read more]',SPAN(comment),_class='balloon') Field(,comment=balloon(T('Explanation for what to enter into title that goes on and on and on'))) Then in CSS have something like: div.balloon{ position:relative; /*this is the key*/ z-index

[web2py] Re: Replace form comment with link or icon

2010-01-11 Thread mdipierro
def balloon(comment) return DIV(comment, _class='hidden', _onmouseover='jQuery (this).fadeIn()', _onmouseout='jQuery(this).fadeOut()') Field(,comment=balloon(T('Explanation for what to enter into title that goes on and on and on'))) Never underestimate the power of helpers and jQuery. On

[web2py] Re: Does auth restrict download?

2010-01-11 Thread mdipierro
Not quite. Instead of using the default download() action to get these files use something like: def mydownload(): filename=request.args(0) user_id=db(db.table.myfile==filename).select().first().user_id db.table.myfile.uploadfolder=os.path.join (request.folder,'uplods',str(user_id))

[web2py] Re: CRYPT() hmac.new and determining length of password

2010-01-11 Thread mdipierro
Only if you make your own validator and apply it before the others. The validator does not need to return the original value, it can change it. class V: def __call__(self,value): return (transform(value),None) On Jan 11, 7:16 pm, waTR wrote: > Is it possible to intercept form submission data

Re: [web2py] strange behaviour of auth link in appadmin

2010-01-11 Thread Thadeus Burgess
auth.settings.controller = 'admin' auth.settings.login_url = URL(r=request, c='admin/user', f='login') auth.settings.logged_url = URL(r=request, c='admin/user', f='profile') auth.settings.login_next = URL(r=request, c='admin', f='index') auth.settings.logout_next = URL(r=request, c='admin', f='ind

Re: [web2py] Replace form comment with link or icon

2010-01-11 Thread Thadeus Burgess
Try > ? comment= XML(A(IMG(_src=URL(...)), _href=URL(...)) -Thadeus On Mon, Jan 11, 2010 at 9:13 PM, iiijjjiii wrote: > I have a form where one field requires a comment to explain what to > enter. The explanation is quite lengthy so I'd rather replace it with > a link or a "help" > icon. I

[web2py] Replace form comment with link or icon

2010-01-11 Thread iiijjjiii
I have a form where one field requires a comment to explain what to enter. The explanation is quite lengthy so I'd rather replace it with a link or a "help" icon. I can't figure out a way to do this. Currently: form=form_factory( db.Field('title', default='default title', comm

[web2py] strange behaviour of auth link in appadmin

2010-01-11 Thread rama
I wanted to change the default controller name. So I deleted it and transferred all its contents to another controller called main. While the links for main exposes links to index, user, download, call correctly (checked the page source, says main/user/). When I click on user it goes to the delete

[web2py] strange behaviour of auth link in appadmin

2010-01-11 Thread rama
I wanted to change the default controller name. So I deleted it and transferred all its contents to another controller called main. While the links for main exposes links to index, user, download, call correctly (checked the page source, says main/user/). When I click on user it goes to the delete

[web2py] Re: Does auth restrict download?

2010-01-11 Thread weheh
Thanks, Massimo, now we're talking. In my case, the folder name is already stored in the record as Field('user_id',auth_user). The subfolder is this user_id. Are you saying, instead, that the filename encoded into Field('myfile',upload) should have this user_id encoded into the upload filename stor

[web2py] Re: CRYPT() hmac.new and determining length of password

2010-01-11 Thread waTR
Is it possible to intercept form submission data before the SQLFORM form factory applies the "requires=" functions, in order to play with the data? On Jan 11, 4:33 pm, waTR wrote: > problem solved by looking in manual under DAL. > > did following: > test = db(query).select() > test[0].update_re

[web2py] Re: CRYPT() hmac.new and determining length of password

2010-01-11 Thread waTR
problem solved by looking in manual under DAL. did following: test = db(query).select() test[0].update_record(password=newpass) original problem was to do with pass auth, not db update (db was updating fine with previous code). On Jan 11, 4:07 pm, waTR wrote: > followup problem is for some

[web2py] Re: CRYPT() hmac.new and determining length of password

2010-01-11 Thread waTR
followup problem is for some reason I cannot update the password in the DB. I am doing db(query).update(password = newpass), however, it does not change the password for some reason... On Jan 11, 3:11 pm, mdipierro wrote: > db.table.field.requires=[IS_LENGTH(20),CRYPT(key)] > > In this case I

[web2py] Re: apache help

2010-01-11 Thread mdipierro
well. I follow your advice and finally moved web2py.com to mod_wsgi which I should have done long ago. everything seems to work fine and be much snappier. Please report any issue. On Jan 11, 5:33 pm, Graham Dumpleton wrote: > On Jan 12, 10:27 am, mdipierro wrote: > > > I should move to mod_ws

[web2py] Re: apache help

2010-01-11 Thread Graham Dumpleton
On Jan 12, 10:27 am, mdipierro wrote: > I should move to mod_wsgi. I did that in all my other installations > but this one because have a complex apache config file. Your > suggestion does not work because I am not proxying only examples but > different apps in different ways and I cannot move i

[web2py] Re: New auth plugin

2010-01-11 Thread Miles Davis
On Jan 11, 3:22 pm, mdipierro wrote: > The one you probably want to change is > > gluon/contrib/login_methods/basic_auth.py > That's what I thought at first, but that's actually performing authentication via basic auth to a third party - what I want is for web2py to assume all authentication is

[web2py] Re: apache help

2010-01-11 Thread mdipierro
I should move to mod_wsgi. I did that in all my other installations but this one because have a complex apache config file. Your suggestion does not work because I am not proxying only examples but different apps in different ways and I cannot move it outside of Location. I am going to move to mod

[web2py] Re: apache help

2010-01-11 Thread Graham Dumpleton
On Jan 12, 10:21 am, Graham Dumpleton wrote: > On Jan 12, 6:48 am, mdipierro wrote: > > > > > > > I have the following in my apache config > > > > >    ServerName mdp.cti.depaul.edu > >    ServerAlias mdp.cti.depaul.edu > >    ServerAliaswww.web2py.com > >    ServerAdmin mdipie...@cs.depaul.ed

[web2py] Re: New auth plugin

2010-01-11 Thread mdipierro
The one you probably want to change is gluon/contrib/login_methods/basic_auth.py On Jan 11, 5:21 pm, Miles Davis wrote: > Hi, > > I'm interested in authenticating against WebAuth (http:// > webauth.stanford.edu), but I'm having trouble getting started. WebAuth > behaves like apache basic auth

[web2py] Re: apache help

2010-01-11 Thread Graham Dumpleton
On Jan 12, 6:48 am, mdipierro wrote: > I have the following in my apache config > > >    ServerName mdp.cti.depaul.edu >    ServerAlias mdp.cti.depaul.edu >    ServerAliaswww.web2py.com >    ServerAdmin mdipie...@cs.depaul.edu >    Alias / /home/user/web2py/applications/ >     >     Order deny,

[web2py] New auth plugin

2010-01-11 Thread Miles Davis
Hi, I'm interested in authenticating against WebAuth (http:// webauth.stanford.edu), but I'm having trouble getting started. WebAuth behaves like apache basic auth as far as web2py is concerned, and sticks the authenticated user name in request.env['remote_user']. I'm looking at gluon/contrib/logi

[web2py] Re: CRYPT() hmac.new and determining length of password

2010-01-11 Thread mdipierro
db.table.field.requires=[IS_LENGTH(20),CRYPT(key)] In this case IS_LENGTH checks the length of the password before it is crypted (validators are filters and they are executed in order). You may also want to look into IS_STRONG as an alternative to IS_LENGTH On Jan 11, 5:01 pm, waTR wrote: > I h

[web2py] Re: amfast

2010-01-11 Thread mdipierro
I did not know about this one. Right now we support pyamf. I am sure we can support amfast as an option. Look into gluon/tools.py/Service for what we do to support pyamf. I would take a patch to support both. Massimo On Jan 11, 4:57 pm, elffikk wrote: > Hi, > > have someone used amfast with web2

[web2py] Re: validators, form validation

2010-01-11 Thread mdipierro
Not sure I understand what is status enumeration. Any constant defined in models will be visible in controllers On Jan 11, 4:53 pm, "KONTRA, Gergely" wrote: > Hmm, seems to be not a good idea to write more topics in one > message... Anybody on the enumeration part? > +-[ Gergely Kontra  ]---

[web2py] CRYPT() hmac.new and determining length of password

2010-01-11 Thread waTR
I have a form made with form factory and SQLForm that has 2 password fields set to CRYPT(). When the form is submitted I need to check the length of the password entered (the string). However, the password is hashed, and so I am not sure how to check the length of the actual password string. -- Y

[web2py] amfast

2010-01-11 Thread elffikk
Hi, have someone used amfast with web2py? http://code.google.com/p/amfast/ I am interested in using it with web2py in gae http://code.google.com/p/amfast/wiki/ExampleImplementations so if someone used it please share your experience, save my time :) -- You received this message because you are

[web2py] Re: validators, form validation

2010-01-11 Thread KONTRA, Gergely
Hmm, seems to be not a good idea to write more topics in one message... Anybody on the enumeration part? +-[ Gergely Kontra  ]--+ |   | | Mobile:(+36 20)356 9656   | |

[web2py] Re: Does auth restrict download?

2010-01-11 Thread mdipierro
Let me explain the problem. When you upload a file you can put it where you like using uploadfolder. The file gets renames table.field.JUNK.extension where JUNK is a UUID including the b16encoded original filename. So far so good. Now if you try to download the file with http:///ap

Re: [web2py] Re: flashy session.flash request

2010-01-11 Thread Thadeus Burgess
agreed, users decide :) Defaults can be a pita to change. -Thadeus On Mon, Jan 11, 2010 at 3:24 PM, mdipierro wrote: > I think we should let the users decide since this is a matter of > taste. > > On Jan 11, 2:48 pm, rama wrote: >> Didn't know it was that simple. So do you think it will ge

[web2py] Re: Does auth restrict download?

2010-01-11 Thread weheh
How do you set the subfolders? You cannot set them in the action that > does the upload. You can only set them via > db.table.field.uploadfolder= in the model since the download > action needs to know about them. Yes - that smells like it's causing the behavior I'm seeing. My model sets the db

[web2py] Re: flashy session.flash request

2010-01-11 Thread mdipierro
I think we should let the users decide since this is a matter of taste. On Jan 11, 2:48 pm, rama wrote: > Didn't know it was that simple. So do you think it will get into the > web2py source or leave it to users to decide?. I can help to sort the > errors into the three categories I mentioned ear

[web2py] Re: flashy session.flash request

2010-01-11 Thread rama
Didn't know it was that simple. So do you think it will get into the web2py source or leave it to users to decide?. I can help to sort the errors into the three categories I mentioned earlier. On Jan 12, 3:24 am, mdipierro wrote: > You can do it already > > reponse.flash=SPAN(T('this is an error'

Re: [web2py] Re: Strange behaviour when appending on lists

2010-01-11 Thread Thadeus Burgess
It is because pv is a pointer to the memory that holds its list. When you append pv to val, your appending the *reference* to pv. So whenever you update pv, all references to pv also reflect these changes. The reason that slicing pv with [:] works is because you are making a copy of pv, and appe

[web2py] Re: Share some wisdom

2010-01-11 Thread selecta
Ok here goes another one Features of a bug tracker that I use: Rank (high priority - low priority) Staus (open/close) Assign to (some team member) (what I think is nice too is: duplicate of) This works well in a small project I guess the other features are needed in a larger project where you need

[web2py] Re: auth tables model

2010-01-11 Thread Alexandre Andrade
Now working: auth.settings.table_user=db.define_table('auth_user', Field('first_name', length=128, default='', label=auth.messages.label_first_name), Field('last_name', length=128, default='', label=auth.messages.label

[web2py] Re: Share some wisdom

2010-01-11 Thread selecta
I was short on time so I will continue now with how I/my group deals with spreading the work. In most cases it clear who will do what since everybody has some special knowledge in a part of the software that he created. If the assignment is close to what one of my colleages is doing the bug or feat

[web2py] Re: Does auth restrict download?

2010-01-11 Thread mdipierro
Auth can restrict download but you have to set the db.table.field.authorize=... to do so. How do you set the subfolders? You cannot set them in the action that does the upload. You can only set them via db.table.field.uploadfolder= in the model since the download action needs to know about the

[web2py] Does auth restrict download?

2010-01-11 Thread weheh
Does auth restrict download. I'm using an auth.user.id to choose which uploads/sub-folder auth downloads jpeg files from. For whichever account I'm logged into, the images are downloaded correctly, but images from other uploads sub-folders are not. Is there a default access restriction built into d

[web2py] apache help

2010-01-11 Thread mdipierro
I have the following in my apache config ServerName mdp.cti.depaul.edu ServerAlias mdp.cti.depaul.edu ServerAlias www.web2py.com ServerAdmin mdipie...@cs.depaul.edu Alias / /home/user/web2py/applications/ Order deny,allow Allow from all Order deny,allow

[web2py] Re: flashy session.flash request

2010-01-11 Thread mdipierro
You can do it already reponse.flash=SPAN(T('this is an error'),_style='color:red') On Jan 11, 11:58 am, rama wrote: > A feature request here. Can you make the session.flash built in to > web2py like maybe: > blue- for information; > hues of red- for errors; and > green- for successful operation

[web2py] Re: validators, form validation

2010-01-11 Thread mdipierro
On Jan 11, 11:19 am, pihentagy wrote: > On Jan 11, 2:57 pm, mdipierro wrote: > > > You can create your own field-level validators > > > class validator: > >    def __init__(self,error_message): self.error_message=error_message > >    def __call__(self,value): > >        if success: return (valu

[web2py] Download avatar 2009 for free

2010-01-11 Thread avatar3
Download avatar 2009 In the future, Jake, a paraplegic war veteran, is brought to another planet, Pandora, which is inhabited by the Na'vi, a humanoid race with their own language and culture. Those from Earth find themselves at odds with each other and the local culture. Download avatar 2009   --

[web2py] flashy session.flash request

2010-01-11 Thread rama
A feature request here. Can you make the session.flash built in to web2py like maybe: blue- for information; hues of red- for errors; and green- for successful operation rather than the standard orange. I think it will give a quicker visual cue for the developer. Anyone second this request? -- Y

[web2py] Re: validators, form validation

2010-01-11 Thread pihentagy
On Jan 11, 2:57 pm, mdipierro wrote: > You can create your own field-level validators > > class validator: >    def __init__(self,error_message): self.error_message=error_message >    def __call__(self,value): >        if success: return (value,None) >        else: return (value,self.error_messag

[web2py] Re: http://www.web2py.com/ - server down?

2010-01-11 Thread mdipierro
I found another major problem with my server. having to do with an old and incorrect apache configuration... all static files are server via a proxy by wsgiserver, since apache is ignoring a LocationMatch directive. I will change this but you may experience some downtime today. Massimo On Jan 11,

[web2py] Re: Share some wisdom

2010-01-11 Thread rondevu
Thadeus, thanks for asking these questions! I am loving the answers here. And, to all who answered here, many more thanks for the advices. Replies on this thread is really useful for a programming newbies like me and creates a good direction for organised work. Would love to hear more. On Jan 12

Re: [web2py] Re: http://www.web2py.com/ - server down?

2010-01-11 Thread Timothy Farrell
How about putting in an exception that removes something from the ramcache on an outofmemory error? On 1/11/2010 10:57 AM, mdipierro wrote: I think I found what was causing the problem. Not 100% sure but most likely it was this app: http://www.web2py.com/stocks It was caching large datasets i

[web2py] Re: http://www.web2py.com/ - server down?

2010-01-11 Thread mdipierro
I think I found what was causing the problem. Not 100% sure but most likely it was this app: http://www.web2py.com/stocks It was caching large datasets in ram and that was causing the occasional out of memory. Lesson learned: do not cache in ram too much. Massimo On Jan 11, 7:58 am, mdipierro

[web2py] Re: session.flash after registration?

2010-01-11 Thread JimK
That makes sense. I should have figured that out myself. After I finish my project and verify that all of the parts are in working order, I'll package a couple things up as modules or plugins to share with the community. I'm working on a PayPal IPN verification system with a way of handling PayP

Re: [web2py] Re: error DAL with Sqlite in appadmin

2010-01-11 Thread Thadeus Burgess
Yes I had to revert to an old SVN revision I had lying around so I could look at appadmin really fast. Surprisingly, everything besides virtaulfields worked the same :) -Thadeus On Mon, Jan 11, 2010 at 10:08 AM, Jose wrote: > > > On 10 ene, 23:09, mdipierro wrote: >> I understand the probl

Re: [web2py] Re: Share some wisdom

2010-01-11 Thread Thadeus Burgess
Version control is a gimme... Which I currently use Mercurial, the main repo is on our fileserver which gets replicated to an off-site backup server. I guess I sidetracked myself, I am not too concerned with the technical differences between one system or another, I am more interested in ways to g

[web2py] Re: error DAL with Sqlite in appadmin

2010-01-11 Thread Jose
On 10 ene, 23:09, mdipierro wrote: > I understand the problem now. Yes I did an experiment with the code in > trunk and broke a new stuff. I think I have restored things to what > they should be. Please try again and thanks for your patience. > > massimo > Perfect, now works fine. Thanks Jose

[web2py] Re: Is there any 'Ad Rotator' like in ASP in web2py

2010-01-11 Thread K.R.Arun
hi, Thanks for the link. I cloned it and will look it later today. Also thank you for pointing me to the bitbucket.com I installed hg long before, but only now it got some usage, and like it now. What's the license for the source code? On Jan 10, 6:38 pm, Jon Romero wrote: > Yeap, here you go:h

[web2py] Re: Strange behaviour when appending on lists

2010-01-11 Thread DenesL
This behaviour is explained in Python's documentation under "Language reference", topic 3.1 "Objects, values and types" (in 2.5.4): "Some objects contain references to other objects; these are called containers. Examples of containers are tuples, lists and dictionaries. The references are part of

[web2py] Re: Importing a large file

2010-01-11 Thread Brian M
Jason, put your csv file in the private subfolder of your application and call it "paint.csv" and then add the following code to your controller and it should work. (Well at least it imported the few records you provided, I haven't taken the time to totally check that everything lines up. ~Brian

[web2py] Re: Share some wisdom

2010-01-11 Thread selecta
I work in a scientific environment, so not exactly what you want to do but I do things similar to what was already described I use Version Control (Currently SVN) Log History show nicely what has happened lately I use a bug tracker and a feature tracker Shows even better what should be done (feat

Re: [web2py] Re: How to avoid duplicate entries?

2010-01-11 Thread Johann Spies
Thanks. That explains it. Johann -- 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.com. For more options, v

[web2py] auth tables model

2010-01-11 Thread Alexandre Andrade
I recreate the auth tables models, to make it easier to personalize: disable the #auth.define_tables() and put: db.define_table('auth_user', Field('first_name', requires = IS_NOT_EMPTY(error_message=auth.messages.is_empty)), Field('last_name'

[web2py] This is cool.

2010-01-11 Thread mdipierro
http://code.google.com/p/jspdf/source/browse/trunk/examples/jaxer.htm -- 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...@

[web2py] plugin static files

2010-01-11 Thread selecta
when i create a static file in a plugin it just disappears, i can find it again if i go into the main application the behavior I would expect is that a folder with the plugin name is created e.g. static/plugin_test/ where all static files of the pluing will be saved to (in other words static/plugi

[web2py] Re: http://www.web2py.com/ - server down?

2010-01-11 Thread mdipierro
There is definitively a major problem with my server. I will put an effort in moving somewhere else in the next couple of days. On Jan 11, 6:33 am, "Werner F. Bruhin" wrote: > Service Temporarily Unavailable > > The server is temporarily unable to service your request due to > maintenance downtim

[web2py] Re: validators, form validation

2010-01-11 Thread mdipierro
You can create your own field-level validators class validator: def __init__(self,error_message): self.error_message=error_message def __call__(self,value): if success: return (value,None) else: return (value,self.error_message) both form.accept and crud.create/crud.update tak

[web2py] Re: How to avoid duplicate entries?

2010-01-11 Thread mdipierro
This is correct but the problem is that one of the fields is supposed to be a date and it is not On Jan 11, 5:16 am, Johann Spies wrote: > I am trying to sanitise data from different sources programatically. > The following function is part of my effort: > > def artikel(datum,ti,wod_id,publ_id,di

[web2py] Re: session.flash after registration?

2010-01-11 Thread mdipierro
The problem is that unless you have auth.settings.registration_requires_verification = True the user is automatically logged in after registration so the login flash overrides the registration flash. If you change the above setting, users will get the registration flash "email sent" which is t

Re: [web2py] Re: Importing a large file

2010-01-11 Thread Jason Brower
Your requested some more data... "paint_name","base_paint","colorant","amount","colorant","amount","colorant","amount","colorant","amount","colorant","amount" "10 JORASDUN",C,DD1,56,fS1,42,So1,110,AA1,8,, "10 SVFGH",W,To1,180 1002-DG5R,R,Co2,30,la1,4,To1,5 1008-Y24R,A,DD2,88,la1,17,Fo1,

Re: [web2py] Re: enforcing a one-to-one relationship

2010-01-11 Thread Jeff Bauer
Still fails for me on a record update: 'value already in database' -Jeff On 01/10/2010 09:53 PM, mdipierro wrote: That is easy to fix. In fact it is now fixed in trunk. On Jan 10, 9:42 pm, Jeff Bauer wrote: There's a further problem here. The scheme below also prevents socdiag from ever

[web2py] http://www.web2py.com/ - server down?

2010-01-11 Thread Werner F. Bruhin
Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache/2.2.9 (Ubuntu) mod_ssl/2.2.9 OpenSSL/0.9.8g Server at www.web2py.com Port 80 -- You received this message because you are

[web2py] validators, form validation

2010-01-11 Thread KONTRA, Gergely
Hi! I have a status "enumeration" for a status in one of my tables. I'd like to store it, as an integer, and access it with constants. Where should I define these constants (I guess I should in db.py), and how can I access them in the controller? And some random things about validators: date valid

[web2py] How to avoid duplicate entries?

2010-01-11 Thread Johann Spies
I am trying to sanitise data from different sources programatically. The following function is part of my effort: def artikel(datum,ti,wod_id,publ_id,di): titel = ti.strip().upper() if db(db.artikel.titel == titel).count() < 1: # Is titel already in database? artikel_id = db.

Re: [web2py] Re: Is there any 'Ad Rotator' like in ASP in web2py

2010-01-11 Thread Alexandre Andrade
Nice! 2010/1/10 Jon Romero > Yeap, here you go: > http://bitbucket.org/jonromero/openshare/src/ > > On Jan 7, 12:31 pm, "K.R.Arun" wrote: > > Is source is available?? > > > > I haven't seen it. Please provide me the link. > > No one ever want's to start from scratch (most of the time). > > > >

Re: [web2py] Current List Of Web2py Plugins

2010-01-11 Thread Alexandre Andrade
breadcrumb is not yet a plugin, but only slices. I made two versions: 1. Easy BreadCrumb - Automatically defines Home > Controller > Function http://www.web2pyslices.com/main/slices/take_slice/46 2. Full Breadcrumb - Can personalize/define parents, like in Home > Clients > John Bold > Orders >

[web2py] Strange behaviour when appending on lists

2010-01-11 Thread Benigno
First of all, my excuses, this may be a bit more related to Python programming rather than specific web2py programming. But I have bumped into something that has made me loose a lot of time, and thought I'd share it, and maybe make a fool of myself: If I append values after asigning them as pv[ind

Re: [web2py] Re: Importing a large file

2010-01-11 Thread Jason Brower
Using only what I know I have implemented this... def rebuild_database: import sys data = open("/home/jason/Desktop/colorant_tints.txt") parsed_data = [] for line in data.readlines(): parsed_data.append(line.rsplit(",")) sys.stdout.write(".") for line in parsed_d

Re: [web2py] Re: Importing a large file

2010-01-11 Thread Jason Brower
It seems to give me the error: type error '_csv.reader' object is unsubscriptable Regards, Jason On Sat, 2010-01-09 at 07:32 -0800, Brian M wrote: > paint_formulas is supposed to get the contents of the csv file. (See > http://docs.python.org/library/csv.html) It should be populated by the > lin

[web2py] force login and register over https on GAE

2010-01-11 Thread JimK
Is it possible to setup a route that redirects all attempts to access the login and register pages to https? In other words, userA goes to my apps site via http and then decides to register for the service. He clicks the register link and is then redirected to that url but as https. I know I coul