[web2py] Re: A Call to Arms - Necessary and KILLER Apps for Web2py
+1 On Aug 2, 12:16 pm, Phyo Arkar wrote: > Web2py is Great, Greatest framework that i had ever tried and stick onto it. > > But what it is lacking is publicity and lack of KILLER web-apps like those > Made PHP most popular web-development platform. > Here are some , what that had made PHP Popular and which will also make > Web2py + Python all together more popular and makes development enviorment > of Choice for web: > > Necessary APPS: > > *Database Administration:* > > phpMyAdmin - Is the Most used webbased Database Manager ever > > we have admin for web2py but that alone is not sufficient, we need a DB > Admin for every Databases on the current system . > Current commercial project i am doing have some features for it and when i > free i will start making dedicated one . I will need contributers later. > > Hows about PySQLAdmin sounds? > > *File Manager :* > > Those who work on LAMP , they usually use a file manager like net2ftp. > Current my elFinder-web2py works well for this case, but i need > contributors . > > *CMS* > > KPAX exist but it is not dedicatedly maintained , we will need dedicated > maintainers for it , lets let Massimo dedicate his works on web2py. > KPAX should not only be as Appliance , it should have its own Domain and > brand.And lets make it better than CMS. > > *Blog* > > There are many blog exist on the appliance , but we need a dedicate best one > that can go toes to toes against Wordpress. > + will need A Dedicated domain , and maintainer. > * > * > * > * > KILLER APP Ideas > > *Stack Overflow Clone:* > > For web2py community and as separate Open Source Project , lets make a SO > Clone? > > *Email Client:* > * > * > Python have a very rich Built-in mail handling libs , developing a > gmail-clone wont be hard at all. > > Ticketing Systems: > > Many enterprises needs a Help Desk/ Ticketing system . Best one i used is RT > (Perl based ticketing system). We can make a better one based on web2py. > > What i can contribute : > > I am planning to provide a site for hosting web2py app and demos for it. I > have server / space and good domain (www.web2pyhost.com, scaryhits.com) or > should it be web2pyapps.com > for code hosting we can use google for that. > > * > *
[web2py] Filling a form with AJAX / contextual JQuery dialog?
Hi everyone, I would like that when a user clicks on a button "add an address", a small window shows up with the form to be filled in. The point is that I do not want to leave for another view to fill the form and then come back, I want to stay on the page containing the button opening the form... So I guess I would need some AJAX wouldn't I? But I am a real newbie here... How could I do that? In my trial I thought I could use maybe a JQuery dialog for that. So I have put this in layout.html within the tag: http://ajax.googleapis.com/ajax/ libs/jqueryui/1.7.1/jquery-ui.min.js"> $(document).ready(function() { var $dialog = $('') .html('This dialog will show every time!') .dialog({ autoOpen: false, title: 'Basic Dialog' }); I thought I could use maybe a JQuery dialog for that. $('#opener').click(function() { $dialog.dialog('open'); // prevent the default action, e.g., following a link return false; }); }); Then I have put that in index.html: Open the dialog And it works all right. The dialog opens when I click the button, but... My first problem is : is there a way to define the and
[web2py] sending membership invitations
Hi everyone, In an app a user have to send invitations to friends for them to register on the app, and possibly join a group the sender has created beforehand. 1. Does someone know about a way to have the app connect to GMail/ Facebook/... bring a list of people to select from, and send an email to them? 2. What would be a simple way to get a "registration+join_group" link in the email that works only once (so that people cannot give it to someone else after they have used it to register themselves)? Thanks a lot, Aurelien
[web2py] Re: group memberships on the fly : to auth or not to auth?
Thanks, Massimo! On 27 juil, 12:02, mdipierro wrote: > It is appropriate for what you need to do. > > On Jul 27, 4:40 am, aure wrote: > > > Hi everyone, > > > I am trying to create an app in which a user can create a group and > > invite people to join it. > > > A member of a group can then add documents to the group. This is not > > possible for non members of a group. > > > My question is: > > > is the authorisation mechanism described in the book (with decorators > > and all...) possible/appropriate for my scenario (groups keep on being > > added by users) OR on the contrary is it rather only appropriate for > > managing application wide rights (e.g. some managers of the app, plus > > some editors...)? > > > Thanks, > > Aurelien > >
[web2py] group memberships on the fly : to auth or not to auth?
Hi everyone, I am trying to create an app in which a user can create a group and invite people to join it. A member of a group can then add documents to the group. This is not possible for non members of a group. My question is: is the authorisation mechanism described in the book (with decorators and all...) possible/appropriate for my scenario (groups keep on being added by users) OR on the contrary is it rather only appropriate for managing application wide rights (e.g. some managers of the app, plus some editors...)? Thanks, Aurelien
[web2py] Re: plugin_wiki / roles
Chris, thanks for your answer. I will play around a bit more and see if I get everything I want working... Aurelien On 22 juil, 07:08, Chris S wrote: > I've been really exploringplugin_Wikisince it's launch and I can at > least answer what the Role: box does. > > If a group is listed in this box for a page ONLY that group can then > access the page. Notice I say group because while "user_1" is the > default group for a specific user you can just as easily create a > group which contains multiple users and assign it in this spot. > > My only issue with the "Role" in it's current implementation is that > it is fairly limiting. If an editor sets a page to a group of which > he is not a member it actually will produce an error when saving due > to the automatic redirect to view the page after saving. > > I'm not sure I can answer the final question on application > administration. My best shot is to say you can add/remove users from > a group (editor in this case) at any time. There is however in the > defaultplugin_wikionly three levels of authentication. > > Not-Registered > Registered > Wiki_Editor > > On Jul 21, 5:49 pm, aure wrote: > > > Hi everyone, > > > Massimo, thanks a lot for the last video. > > I have just tried everything on a webfaction web2py website and this > > is really fast and easy to build applications this way! :D > > > I have questions considering roles though. At the bottom of the Pages > > when we build them usingplugin_wiki, I can see a drop-down menu > > called "Role:" By default it shows empty on my pages, but if I click > > on it I get an option for using "user_1". So my first question is: > > > - what difference does it make to select "user_1" instead of empty > > when I build a page? > > > Then, how can I use roles in a simple blog scenario, in which I would > > like to have one admin (me) which gets access to some pages that > > normal visitors (which will not login) won't get access to. > > > I would like to add that I am a bit confused with how to separate > > between the (role of the) creator of the app, which has full control > > during development and that (I guess) has to be removed from the > > finished application versus the admin(s) of the finished > > application... > > > Thanks in advance, > > Aurelien
[web2py] plugin_wiki / roles
Hi everyone, Massimo, thanks a lot for the last video. I have just tried everything on a webfaction web2py website and this is really fast and easy to build applications this way! :D I have questions considering roles though. At the bottom of the Pages when we build them using plugin_wiki, I can see a drop-down menu called "Role:" By default it shows empty on my pages, but if I click on it I get an option for using "user_1". So my first question is: - what difference does it make to select "user_1" instead of empty when I build a page? Then, how can I use roles in a simple blog scenario, in which I would like to have one admin (me) which gets access to some pages that normal visitors (which will not login) won't get access to. I would like to add that I am a bit confused with how to separate between the (role of the) creator of the app, which has full control during development and that (I guess) has to be removed from the finished application versus the admin(s) of the finished application... Thanks in advance, Aurelien
[web2py] Re: markmin, t2, t3, cube9 etc. (important update)
Comment below On Jul 10, 9:32 am, mdipierro wrote: > Answers below > > On 9 Lug, 21:42, Scott wrote: > > > I think this should replace the Welcome application and the > > documentation should be integrated into the web2py book. I'm > > impressed with the complete rewrite! I like the way that you get > > web2py-admin-esque functionality without having to use the admin > > directly, and it all works through Google App Engine. It certainly > > makes page creation easier. > > > Out of curiosity, would you need to use a custom routes.py to remove > > (rewrite) "plugin_wiki" from the URL? I'd probably want to hide that > > from casual users. > > > A few suggestions and questions: > > - Consider an internally-hosted chart generator (e.g. jqPlot) in lieu > > of Google Charts API; this will allow the charts to generate behind > > corporate firewalls > > This is a good point. I will do it. > > > - Can the tag cloud be made hyper-linkable? That is to say, clicking > > on a word in the tag cloud might show a list of relevant tagged pages. > > Can be done but right now there is a logic problem. Which pages should > the tags link to? I guess wiki pages with the names of the tags? > > > - What is the future direction of cube2py? It seems that most of the > > functionality coded in the View can be replaced with cube2py and > > markmin. It also replaces some of the code normally located in the > > Controller such as CRUD and jqGrid functionality. If this is the > > case, is it the intent to replace the admin with cube2py? > > It cannot be a replacement. In admin you edit files and code is in > files. With cube2py you edit only the database and code is in the > database. I think they must coexist. I understand that it cannot be a replacement. And this creates a difficulty for beginners (like me...) as it is sometimes hard to see where to put/do what, as there might be different ways to do things. This can become problematic because not all ways are as robust/clean/ efficient/secure... as they should be. Therefore I believe it would be nice and welcome if a few examples/guidelines/explanations regarding this issue would be givenn somewhere... Thanks! > > Thanks! > >
[web2py] Re: markmin, t2, t3, cube9 etc. (important update)
Great news! Thanks for the work Massimo! Being new to both, I myself still hesitate for my project between choosing a CMS and struggle with the programming vs. choosing web2by and struggle with all the things which come "for free" in a CMS... And Cube2py starts to bridge the gap in some ways :-) I am sure that having these new features will bring more people to web2py. Aurelien On Jul 9, 12:20 am, Jonathan Lundell wrote: > On Jul 7, 2010, at 3:47 PM, mdipierro wrote: > > > I do not have a strong opposition and I see the advantages in terms of > > notation but I have two problems: > > I'm tied up today, so just a quick note. I understand and generally agree > with your caveats. I have a couple of thoughts on the subject that I'll come > back with. > > > > > The page:slug notation is handled by plugin_wiki, not by markmin. > > markmin just treats url, #anchor, url#anchor, page:slug all in the > > same way. plugin_wiki replaces the page:.. with /app/plugin_wiki/ > > page/ after markmin has done its job. > > This decoupling was intentional to allow markmin to work without > > web2py and without plugin_wiki conventions. > > Your first suggestion would introduce coupling. Moreover it would > > provide a shortcut that encourage users to display the slug as text of > > the link. I am not convinced this is a good idea. > > > Massimo > > > On 7 Lug, 17:24, Jonathan Lundell wrote: > >> On Jul 7, 2010, at 3:14 PM, mdipierro wrote: > > >>> Right now you can do links with > > >>> url > >>> [[name url]] > >>> [[name #anchor]] > >>> [[name url#anchor]] > >>> [[name page:slug]] > > >>> and define an anchor with > > >>> [[anchor]] > > >>> If I understand your suggestions: > >>> 1) also allow > >>> [[url]] > >>> [[url#anchor]] > >>> [[#anchor]] > >>> [[page:slug]] > >>> to allow un-named links. Q: how can a link not have a name? > > >> In your notation, I was thinking: > > >> [[slug]] would imply [[slug page:slug]] > > >> 'slug' would be used verbatim as the name, and with slug-encoding as the > >> slug. > > >> A link would always have a name; it would just be implicit. That's the > >> Mediawiki convention, though they use a vertical bar to separate an > >> optional name from the slug. > > >>> 2) use [[=anchor]] to define an anchor to avoid conflict with 1. > > >>> if we do 1, we must do 2 but I would prefer [[!anchor]] then. > > >> Sure. > > >> Or [name:anchor], which corresponds to the html that it generates. > >
[web2py] Re: Webfaction rocks
Oh... Great! Thank you for the information, Yarko! (I really have a lot to learn...) Regards, Aurelien On 28 avr, 10:59, Yarko Tymciurak wrote: > You are using a shared SSL certificate (courtesy of webfaction); > > That is, the SSL certificate is issued to a URI other than yours. > Depending on browser, and it's security settings it will react in > different ways (for example, you can have some browsers permanently > remember the exception you make about this particular mis-match). > > This has nothing to do with web2py - when you are ready to deploy, you > simply need to shop around, and decide on buying your own SSL cert. > for your site. > > Have fun! > > Regards, > -Yarko > > On Apr 28, 3:24 am, aure wrote: > > > Hi everyone, > > > Thanks for your help! > > > @Jonathan: yes, if I disable https I can access the welcome web2py app > > without any problem. I just cannot login into the admin.. > > > @Thadeus, yes I have told firefox to accept the SSL certificate > > anyway, and I can then access the app. But I would not want that to be > > necessary for people visiting the site... Is there a way to have > > visitor access the site without https and use a secure connection only > > for admin login? Well, I believe I would publish my apps manually > > anyway (in one of the ways you described), so I probably do not really > > need the admin to work... but an answer would still be valuable if, > > let us say, I would need some pages on my site to be accessed via > > https... > > > @Annet, for now I am just trying to use the default webfaction domain > > I got on registration... I subscribed to a Shared 1 service, but I > > don't seem to have a dedicated IP addresse. Is this a problem? > > > Kind regards, > > Aurelien > > > On 27 avr, 17:01, Jonathan Lundell wrote: > > > > On Apr 27, 2010, at 7:32 AM, aure wrote: > > > > > As I had started to do it your way before you even mentioned it > > > > (created 2 websites...), I decided to try your solution. > > > > Unfortunately, when I try to access the admin website I get this in > > > > Firefox: > > > > > -- > > > > Secure Connection Failed > > > > > admin.aurerua.webfactional.com uses an invalid security certificate. > > > > > The certificate is only valid for the following names: > > > > *.webfaction.com , webfaction.com > > > > > (Error code: ssl_error_bad_cert_domain) > > > > -- > > > > > Do you remember getting this as well when you did your setup? I do not > > > > know how to solve this... > > > > I haven't been following this thead, but... > > > > Can you access it via aurerua.webfactional.com? (That is, leave off the > > > admin.) Both names resolve to the same IP, and the cert ought to work for > > > the shorter address. > > > > -- > > > Subscription > > > settings:http://groups.google.com/group/web2py/subscribe?hl=en
[web2py] Re: Webfaction rocks
Hi everyone, Thanks for your help! @Jonathan: yes, if I disable https I can access the welcome web2py app without any problem. I just cannot login into the admin.. @Thadeus, yes I have told firefox to accept the SSL certificate anyway, and I can then access the app. But I would not want that to be necessary for people visiting the site... Is there a way to have visitor access the site without https and use a secure connection only for admin login? Well, I believe I would publish my apps manually anyway (in one of the ways you described), so I probably do not really need the admin to work... but an answer would still be valuable if, let us say, I would need some pages on my site to be accessed via https... @Annet, for now I am just trying to use the default webfaction domain I got on registration... I subscribed to a Shared 1 service, but I don't seem to have a dedicated IP addresse. Is this a problem? Kind regards, Aurelien On 27 avr, 17:01, Jonathan Lundell wrote: > On Apr 27, 2010, at 7:32 AM, aure wrote: > > > > > As I had started to do it your way before you even mentioned it > > (created 2 websites...), I decided to try your solution. > > Unfortunately, when I try to access the admin website I get this in > > Firefox: > > > -- > > Secure Connection Failed > > > admin.aurerua.webfactional.com uses an invalid security certificate. > > > The certificate is only valid for the following names: > > *.webfaction.com , webfaction.com > > > (Error code: ssl_error_bad_cert_domain) > > -- > > > Do you remember getting this as well when you did your setup? I do not > > know how to solve this... > > I haven't been following this thead, but... > > Can you access it via aurerua.webfactional.com? (That is, leave off the > admin.) Both names resolve to the same IP, and the cert ought to work for the > shorter address. > > -- > Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en
[web2py] Re: Webfaction rocks
Hello Thadeus, After trying Annet's solution, I tried yours. Now if I try to access my site I get a webfaction message: "Site not configured..." This seems to be because I have enables HTTPS. Is normal that I cannot access the website using HTTP now? I am a bit confused. Now if try to access the site using https I get the same message in Firefox as described in my reply to Annet, namely: -- Secure Connection Failed admin.aurerua.webfactional.com uses an invalid security certificate. The certificate is only valid for the following names: *.webfaction.com , webfaction.com (Error code: ssl_error_bad_cert_domain) -- Do you know what could cause the problem? Otherwise, you mentioned in some post above that you are "comfortable enough with ssh to publish the app manually". Maybe I could do that. I would not need to use the admin app online, is it true? In that case, how do you publish an app manually? Sorry for all these questions. I would be so glad to be able to put my first web2py app online! Aurelien On 25 avr, 17:16, Thadeus Burgess wrote: > - SSH into the machine, navigate to your root web2py directory > (containing web2py.py), and then run ``python2.5 web2py.py -a > `` > - Then rename parameters_8000.py to parameters_443.py > - Make sure you have HTTPS triggered for your domain inside the > webfaction control panel. > > Replace your app like any other web2py app, using the admin application. > > You can only have one web2py instance running on a domain and it has > to be the root domain. However you can have as many web2py apps > running on this instance as you want, and you can always use routes to > make sure things go to the correct place (say each app has its own > domain). > > -- > Thadeus > > On Sun, Apr 25, 2010 at 6:12 AM, aure wrote: > > ssible to have more than one application working on one > > domain? or spread them to subdom > > -- > Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en
[web2py] Re: Webfaction rocks
Hello Annet, As I had started to do it your way before you even mentioned it (created 2 websites...), I decided to try your solution. Unfortunately, when I try to access the admin website I get this in Firefox: -- Secure Connection Failed admin.aurerua.webfactional.com uses an invalid security certificate. The certificate is only valid for the following names: *.webfaction.com , webfaction.com (Error code: ssl_error_bad_cert_domain) -- Do you remember getting this as well when you did your setup? I do not know how to solve this... Kind regards, Aurelien Aurelien On 25 avr, 18:30, annet wrote: > I took a somewhat different approach. I signed up for a shared 1 plan > and got a dedicated IP address. Under domains I added two subdomains: > www and admin. Under applications I created a web2py application of > type custom install script (http://wiki.webfaction.com/wiki/Web2py- > LatestSource?format=txt). Under websites I created two websites one > with https disabled for mydomain.com andwww.mydomain.comand one with > https enabled for admin .mydomain.com in both cases I selected my > dedicated IP address from the IP menu. > > Now admin can be accessed from:https://admin.mydomain.comusing the > same initial password as the webfaction control panel. In my post of > 20 April I described how to install an application. > > Furthermore, according to Massimo this is not true: > > CAVEATS > * Web2py won't work properly if it is mounted to a sub-URL > likehttp://domain.com/web2py/. Instead, it must be mounted to the website > root, e.g.http://domain.com/ > > Massimo's comment on this caveat: > > "It is not true. It can be mounted in a sub-url but you the web server > or web2py routes must be instructed to remove the "web2py/" from the > url." > > Kind regards, > > Annet. > > -- > Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en
[web2py] Re: Webfaction rocks
Annet and Thadeus, Thanks a lot for the quick reply! :) I will check that tomorrow. Aurelien On Apr 25, 6:30 pm, annet wrote: > I took a somewhat different approach. I signed up for a shared 1 plan > and got a dedicated IP address. Under domains I added two subdomains: > www and admin. Under applications I created a web2py application of > type custom install script (http://wiki.webfaction.com/wiki/Web2py- > LatestSource?format=txt). Under websites I created two websites one > with https disabled for mydomain.com andwww.mydomain.comand one with > https enabled for admin .mydomain.com in both cases I selected my > dedicated IP address from the IP menu. > > Now admin can be accessed from:https://admin.mydomain.comusing the > same initial password as the webfaction control panel. In my post of > 20 April I described how to install an application. > > Furthermore, according to Massimo this is not true: > > CAVEATS > * Web2py won't work properly if it is mounted to a sub-URL > likehttp://domain.com/web2py/. Instead, it must be mounted to the website > root, e.g.http://domain.com/ > > Massimo's comment on this caveat: > > "It is not true. It can be mounted in a sub-url but you the web server > or web2py routes must be instructed to remove the "web2py/" from the > url." > > Kind regards, > > Annet. > > -- > Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en
[web2py] Re: Webfaction rocks
Hi, Like Thadeus, I got web2py "working" on webfaction. Well, I went so far as having the web2py welcome page open when I point the browser to the site. >From there, I would be very glad if some people could help me figure out the answer to some of these questions: - I cannot log into the admin (what password am I supposed to use anyway?) - how should I proceed to replace the default web2py application by my own app? - is it possible to have more than one application working on one domain? or spread them to subdomain? Thanks in advance! Aurelien On Apr 21, 4:50 am, Yarko Tymciurak wrote: > I saw - I think it is nice / good that they provide an installer for > users to use; that's a nice plus. > > On Apr 20, 9:37 pm, mdipierro wrote: > > > I asked yesterday (it is the second time I ask): > > > > I manage the web2py mailing list. There are 1750 members there are many > > > of them are interested in using > > > web2py onwebfaction. I see you have explicit support for django, rails > > > and some other frameworks but not > > > web2py. If you are interested I can help you set this up (free of charge, > > > I would require a test account and some > > > email collaboration). Since web2py has PAM support and web based IDE you > > > could make it to work out of the box with new > > > accounts and users would login directly into the web based IDE. This > > > would attract lots of people. > > > they responded: > > > > Adding a new tool to our one-click installer is a big commitment for us > > > because it means we have to support it in the future, > > > add new versions when they come out, add security patches as soon as they > > > come out (and sometimes going through all the > > > sites we host and patching them for our customers if it's a really nasty > > > security hole), answering questions from our customers > > > about the tool etc.). > > > The other tools you refer to were added whenWebFactionfirst started but > > > these days adding a new tool is not something we take lightly. > > > I guess you have to make them know there are many of you using > >webfaction. > > > Personally I am interested in collaboration with a hosting provider > > willing to provide one click web2py support and automatic setting of > > the admin password. So far VPS.net has shown some interest but I need > > to make TurnkeyLinux VM first. > > > Massimo > > > On Apr 20, 8:34 pm, Richard wrote: > > > > previously awebfactionadmin said: > > > "If we ever get enough interest in web2py to warrant an installer in > > > our control panel, then we'll go ahead and add a forum for > > > it."http://forum.webfaction.com/viewtopic.php?id=3216 > > > > Has that happened? > > > > On Apr 21, 9:10 am, Christopher Steel wrote: > > > > > Hi Annet, > > > > > np. The reason you might not want to create sites on your web faction > > > > account using the web interface is because you some day you might find > > > > yourself doing a merge from the command line on your "production > > > > server" (if you start doing versioning with hg or some other system) > > > > which can be a rather unpleasant and undesirable thing to be doing. If > > > > you still want to be able to do it, say in order to impress clients, I > > > > can help you out, just remember that I warned you ; ) > > > > > Chris > > > > > On Apr 20, 2:24 pm, annet wrote: > > > > > > Hi Thadeus, > > > > > > You're right,WebFactionrocks. However, when you want to upload and > > > > > install a packed application you will have to proceed as follows: > > > > > > 1. Log on toWebFactionvia terminal/ssh > > > > > > 2. cd to your remote web2py/application directory > > > > > > 3. Make a directory by the name of the packed application > > > > > > 4. Upload and install the packed web2py application via the web > > > > > interface and rename it to match the name of the directory you > > > > > manually created. > > > > > >https://admin.domain_name.com/admin/default/site > > > > > > In the upload and install form browse to the directory where the > > > > > packed application resides, rename it (required) > > > > > packed_application_name and check the overwrite installed app check > > > > > box. Click install. > > > > > > Thanks to Chris, who helped me solve this problem! > > > > > > Kind regards, > > > > > > Annet. > > > > > > -- > > > > > Subscription > > > > > settings:http://groups.google.com/group/web2py/subscribe?hl=en
[web2py] Re: How to by-pass user/login page for authentication
Great! Grazie mille Massimo! On 13 avr, 15:21, mdipierro wrote: > Have you tried? > > In the index action do not require login and in the index view > {{=auth.login()}} > > Massimo > > On Apr 13, 6:58 am, Rohan wrote: > > > anyway to customize login form? > > > from page source i see form with table inside but no ids. > > > I have vague idea about it can be done using form.widget or > > form.custom or something like this > > > Thanks > > > On Apr 9, 7:52 pm, Thadeus Burgess wrote: > > > > From any controller. > > > > return dict(auth_form=auth()) > > > > Then you can just > > > > {{=auth_form}} in your controllers view. > > > > -Thadeus > > > > On Fri, Apr 9, 2010 at 7:19 AM, Rohan wrote: > > > > Thanks Yarko, > > > > > I don't want to use auth.requires_login() to index function as it will > > > > lead the user to login page. > > > > >> another is to point auth() to get > > > >> login form / action from your more involved controller function, which > > > >> also has your home page (and login form, of course). > > > > > Can you please elaborate on this one? How can I point auth() to get > > > > info from my custom login form on my home page? > > > > > Thanks > > > > > On Apr 9, 5:11 pm, Yarko Tymciurak > > > > wrote: > > > >> On Apr 9, 5:46 am, Rohan wrote: > > > > >> > Hi All, > > > > >> > I am a newbie with web2py. Basically I want to by-pass the user's > > > >> > visit to user/login page. My home page will have the login fields > > > >> > like > > > >> > twitter and I am planning to collect username/email and password from > > > >> > login screen and pass it to web2py's default authentication service > > > >> > for verification. On correct login, user should be navigated to index > > > >> > page like normal. Any pointers? > > > > >> One way to think of what you asked to do is this: > > > > >> - an index page that requires login > > > >> - another page with a place to login, if not logged in > > > > >> A simple way to do this is to add the "auth.requires_login()" > > > >> decorator to your index controller function, which will force a login > > > >> call. There are several ways you can manage how this looks: one is > > > >> by customizing the user.html page in views/default to be what you are > > > >> referring to as your Home Page; another is to point auth() to get > > > >> login form / action from your more involved controller function, which > > > >> also has your home page (and login form, of course). > > > > >> See more athttp://www.web2py.com/book/default/section/8/1?search=login > > > > >> Regards, > > > >> - Yarko > > > > >> > Also Is there anyway to customize the look and feel of default login > > > >> > screen generated by web2py? > > > > >> > Thanks > > > > > -- > > > > To unsubscribe, reply using "remove me" as the subject.
[web2py] form=auth and error 404
Hi everyone, I already posted that at the end of a discussion ("How to by-pass user/ login page for authentication"). But I have no clue why it does behave this way, sorry. If I put in my index controller: return dict(form=auth()) then I get error 404 when I try to access my index view. Yet I have no problem accessing the login page which uses the same "procedure"... Has someone any idea what the problem could be? Thank again, Aurelien -- To unsubscribe, reply using "remove me" as the subject.
Re: [web2py] Re: How to by-pass user/login page for authentication
I get error 404. I have just tried to do it as Thadeus mentioned: my index controller now ends with: return dict(auth_form=auth()) Unfortunately it gives me error 404 when I try to access my index view. Yet I have no problem accessing the login page... Has someone any idea what the problem could be? Thank you, Aurelien Thadeus Burgess a écrit : > From any controller. > > return dict(auth_form=auth()) > > Then you can just > > {{=auth_form}} in your controllers view. > > -Thadeus > > > > > > On Fri, Apr 9, 2010 at 7:19 AM, Rohan wrote: > > Thanks Yarko, > > > > I don't want to use auth.requires_login() to index function as it will > > lead the user to login page. > > > >> another is to point auth() to get > >> login form / action from your more involved controller function, which > >> also has your home page (and login form, of course). > > > > Can you please elaborate on this one? How can I point auth() to get > > info from my custom login form on my home page? > > > > Thanks > > > > > > On Apr 9, 5:11 pm, Yarko Tymciurak > > wrote: > >> On Apr 9, 5:46 am, Rohan wrote: > >> > >> > Hi All, > >> > >> > I am a newbie with web2py. Basically I want to by-pass the user's > >> > visit to user/login page. My home page will have the login fields like > >> > twitter and I am planning to collect username/email and password from > >> > login screen and pass it to web2py's default authentication service > >> > for verification. On correct login, user should be navigated to index > >> > page like normal. Any pointers? > >> > >> One way to think of what you asked to do is this: > >> > >> - an index page that requires login > >> - another page with a place to login, if not logged in > >> > >> A simple way to do this is to add the "auth.requires_login()" > >> decorator to your index controller function, which will force a login > >> call. There are several ways you can manage how this looks: one is > >> by customizing the user.html page in views/default to be what you are > >> referring to as your Home Page; another is to point auth() to get > >> login form / action from your more involved controller function, which > >> also has your home page (and login form, of course). > >> > >> See more athttp://www.web2py.com/book/default/section/8/1?search=login > >> > >> Regards, > >> - Yarko > >> > >> > >> > >> > >> > >> > Also Is there anyway to customize the look and feel of default login > >> > screen generated by web2py? > >> > >> > Thanks > > > > > > -- > > To unsubscribe, reply using "remove me" as the subject. > >
[web2py] Re: Recording voice samples from a web2py app
Hello again, dspiteself, I had a look to red5, and I have to admit that I do not understand much about it yet. If I manage to run a red5 server, would it possible to access it from my web2py application? (Sorry, I am very new to such issues.) Thank you, Aurelien On 18 mar, 23:54, dspiteself wrote: > There are several options most cost money and require a flash media > server. Here is a freeish solutionhttp://fms.denniehoopingarner.com/ > if you can compile the flex to an swf and run your own red 5 server > you are good to go. > > On Mar 18, 8:05 am, aure wrote: > > > Hi everyone, > > > I would like to let some users record voice samples (read bits of > > text) from a web2py application. > > > I imagine the user just clicks on a button to start the recording > > process, reads the text, clicks to stop the recording. Listens to it. > > And saves it if they are happy with it. Otherwise do the whole thing > > again and again until they are satisfied. > > > My question is: can someone point me to such a recording application > > that could be used in a web2py application? > > > Thanks in advance. > > > Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: Recording voice samples from a web2py app
Thank you Yarko for your description of possible ways. And thank you dspiteself for your link. It looks nice. I will take another more in depth look at it later today. Aurelien On 18 mar, 23:54, dspiteself wrote: > There are several options most cost money and require a flash media > server. Here is a freeish solutionhttp://fms.denniehoopingarner.com/ > if you can compile the flex to an swf and run your own red 5 server > you are good to go. > > On Mar 18, 8:05 am, aure wrote: > > > Hi everyone, > > > I would like to let some users record voice samples (read bits of > > text) from a web2py application. > > > I imagine the user just clicks on a button to start the recording > > process, reads the text, clicks to stop the recording. Listens to it. > > And saves it if they are happy with it. Otherwise do the whole thing > > again and again until they are satisfied. > > > My question is: can someone point me to such a recording application > > that could be used in a web2py application? > > > Thanks in advance. > > > Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Recording voice samples from a web2py app
Hi everyone, I would like to let some users record voice samples (read bits of text) from a web2py application. I imagine the user just clicks on a button to start the recording process, reads the text, clicks to stop the recording. Listens to it. And saves it if they are happy with it. Otherwise do the whole thing again and again until they are satisfied. My question is: can someone point me to such a recording application that could be used in a web2py application? Thanks in advance. Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: URL structure for multilanguage site
Hi Chris, I don't know. There still are a few things I do not really understand. I would be happy if some people can answer my questions before... But if you understand these things better than I do, do put it up on web2pyslices! Aurelien On 18 mar, 12:49, Christopher Steel wrote: > Wow, I swear people using web2py can read minds. 14 minutes before my > above post aure posts a solution... > > aure, do you want to put that up on web2pyslices or I could do it for > you. > > Thank you! > > Chris > > On Mar 18, 7:36 am, Christopher Steel wrote: > > > Jiri, Aure and Wikus, > > > I am also working on a multilingual project and I am sure some other > > folks are as well. We could really use some working examples of > > internationalization, especially using URL's and routes_in and > > routes_out and table setups. > > > If you all are up to doing short "slice" you can visit > > > http://www.web2pyslices.com/main/default/indexandcontribute one > > or more working examples. > > > Here is a link to a good one that Massimo did on creating Audit Trails > > as an example: > > > http://www.web2pyslices.com/main/slices/take_slice/35 > > > The other option is "donating" a working application although this > > happens less frequently because of work related restrictions and/or > > licensing. Web2pyslices is fast and easy and because you can use code > > snippits you don't risk giving away any state or corporate secrets ; ) > > > Thanks, > > > Chris > > > On Mar 16, 12:44 pm, Wikus van de Merwe > > wrote: > > > > Aurelien, if your routes_in rule is: > > > ('/app/(en|fr)/(.*)', r'/app/default/\2/\1') > > > > then for /app/fr/function you will get /app/default/function/fr > > > and for /app/en/function/arg1/arg2 you will get /app/default/function/ > > > arg1/arg2/en > > > > Your rule for routes_out now should be: > > > ('/app/default/(.*)/(en|fr)', r'/app/\2/\1') > > > > so for /app/default/function/fr you will get /app/fr/function -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: URL structure for multilanguage site
So here is the full procedure I have been using. 1. As explained by Massimo and Wikus, in order to use two languages (here French -fr- and English -en-) I wrote the following code in file "routes.py" found in the "web2py" folder: #---routes.py---# routes_in = ( ('/app/static/(?P.*)','/app/static/$any'), ('/app/(en|fr)/(.*)',r'/app/default/\2/\1?_language=\1') ) routes_out = ( ('/app/static/(?P.*)','/app/static/$any'), ('/app/default/(.*)/(en|fr)',r'/app/\2/\1') ) #---# where "app" has to be replaced by the actual name of the application REMARKS: I do not know why, but without the line in routes_in and routes_out: ('/llyow/static/(?P.*)','/llyow/static/$any'), which seems to be doing nothing (or not?) I get this error: File "/home/aurelien/Documents/Webdesign/web2py/web2py/gluon/ rewrite.py", line 49, in load for (k, v) in symbols['routes_in']: ValueError: too many values to unpack (Could someone explain what this line actually does, and why it seems to be required?) 2. As explained by Massimo, I then added this line to my model: if request.vars._language: T.force(request.vars._language) 3. I also provided links to switch manually between languages by adding the following code in file "views/layout.html": en fr 4. Finally I added a 'current' language argument to ALL the internal links, like here for the "search" link: {{=A(T('search'),_href=URL(r=request,f='search',args=[request.vars._language]))}} It makes sure that thelanguage preference gets carried on through the browsing session. 5. Finally, as I could not get it to work correctlv for French I tried a few things and I then realised that I only had fr-fr.py in my "languages" folder. I saved a copy of it that I named "fr.py" and it did the magic. (What would be required to use a file like "fr-fr.py" instead?) That is about everything. Thanks again for the ones who helped! Aurelien On 16 mar, 17:44, Wikus van de Merwe wrote: > Aurelien, if your routes_in rule is: > ('/app/(en|fr)/(.*)', r'/app/default/\2/\1') > > then for /app/fr/function you will get /app/default/function/fr > and for /app/en/function/arg1/arg2 you will get /app/default/function/ > arg1/arg2/en > > Your rule for routes_out now should be: > ('/app/default/(.*)/(en|fr)', r'/app/\2/\1') > > so for /app/default/function/fr you will get /app/fr/function -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: URL structure for multilanguage site
Hi, Thank you, Jiri. After your answer I have tried again and found what my problem exactly is. I have used routes_in exactly as shown in Massimo's post and added the other line given in my model. And yes it works just fine when I type the URL http://.../myapp/en/index (it displays the view index.html located in /myapp/default/). But I get "Invalid Controlĺer" if I try to access the URL with another language, e.g. http://.../myapp/fr/index. Has someone any idea why this does not work? Thanks to your answer, I now understand why I should also use routes_out. But here as well it fails to work. Here is what I have tried: routes_out = ('/myapp/default/(?P.*)','/myapp/_language/$any') Thank you, Aurelien On 16 mar, 00:36, Jiri Zahradil wrote: > Hi, > > @1 yes, routes_in does the magic for you, it works perfectly for me, you > should also consider to modifying routes_out to convert links back to > /yourapp/en/ format or you can do it "manually" in your templates ... > > @2 yes, internalization framework T(...) should be used just for application > labels and short text, for content you should definitely use database backed > text. For small and fixed number of languages (2-3) I would use database > columns like text_en, text_fr. If you need to support many languages, I > would recomend create extra table with structure: ID, LANGUAGE, TEXT and > link it to your table with content and replace your text field with > reference to ID in this new table. Then you can select correct translation > using ID and selected language. > > Jiri > > 2010/3/15 aure > > > Please, I would need some help for developing a multilanguage website. > > > 1. I would like to use different URLs for each language: > > > /myapp/en/index.html > > /myapp/en/user.html > > ... > > > /myapp/fr/index.html > > /myapp/fr/user.html > > ... > > > My problem is that I would rather avoid making duplicates of > > index.html in different languages. I need only one such file, but I > > want the URL to show like /myapp/en/index.html for an English version > > of the page and /myapp/fr/index.html for a French version. How can > > this be achieved? > > > Is the method described by Massimo (with routes_in...) the solution to > > my problem? (I have tried to play with it but have not managed to get > > it to actually work). > > > 2. Then, it seems it would be best not using T(...) when the content > > is big, let us say for a post on a blog. Am I right? In that case > > would it be a good solution to have a table in the database storing > > posts with a language column to differentiate them by language? > > > Thanks in advance. > > > Aurelien > > > On 19 avr 2009, 17:08, Jiri Zahradil wrote: > > > I tried to investigate that and it is clear that content localized by > > > session/browser preferance only *cannot* be properly indexed by search > > > engines. Localized version of content must have 1) own URL, 2) must have > > > properly set Content-Language in HTTP headers (can be set by meta tag > > also). > > > -- > > > Jiri > > > > On Sun, Apr 19, 2009 at 5:05 PM, mdipierro > > wrote: > > > > > I do not know. This may help: > > > > >http://www.seoconsultants.com/meta-tags/language.asp > > > > > On Apr 19, 5:03 am, jiri wrote: > > > > > Thanks, routes_in fragment seems to be what I was looking for. > > Session > > > > > variable for remembering last selected language - I like that, I am > > > > > going to include that also. > > > > > > I am not sure about handling language purely using sessions in > > > > > general. It could be worthful if you have an app like webmail for > > > > > example and you want to translate it. But in case of site with > > content > > > > > in multiple languages I believe that right way is to have pages > > > > > (content) in different languages to have different URLs. How can > > > > > search engine handle different language version of page/article if > > > > > language is handled using sessions(and browser language setting) > > > > > only? > > > > > > Jiri > > > > > > On 18 Dub, 17:41, mdipierro wrote: > > > > > > > Personally I do not user routes much and I like to do > > > > > > > if request.vars.force_language: session.force_language > > > > > > if session.force_language: T.force(force_language) > > > > > > > and have button in the
[web2py] Re: web2py beautification
Other interesting ones: http://bluetrip.org/ http://sencss.kilianvalkhof.com/ On 12 mar, 13:33, Johann Spies wrote: > On 11 March 2010 06:11, villas wrote: > > > Obviously if anyone else thinks they have an idea to move towards a > > well-tested div layout using a good naming scheme (preferably borrowed > > from a mainstream project which already has some templates) then do > > please mention it. > > I am only starting on web development and I would prefer a div-based layout. > I have tried out blueprint's model once and I like > it:http://www.blueprintcss.org/ > > Regards > 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: web2py beautification
Looking for more info about OOCSS, I just stumbled upon that: http://www.yaml.de/en/ (It seems to also make use of jQuery in some ways.) I am no expert, but it looks interesting to me, so I thought I would mention it. Aurelien On Mar 7, 6:21 pm, villas wrote: > On Mar 7, 11:37 am, Mengu wrote: > > > if anyone is going to do the design work, i recommend oocss atwww.oocss.org > > Hi Mengu, I've never heard of this, but like the fact that it's based > on YUI but still seems simple and flexible to use. It's appealing to > start off with their solid foundation which you can safely build upon. > > I think using a CSS framework is getting to be inevitable these days. > Most designers will have pieced together their own, but IMO that's not > a good idea for programmers -- it's so easy to lose a couple of hours > fiddling with CSS, especially regular gotchas like a div slipping > down the page in IE but which behaves perfectly well in FF -- we just > don't need it! I can see why Massimo must have given it some thought > and then gone back to a good old table! > > In my mind, the main question is: is there any kind of standard > which gives immediate access to lots of templates. If not, then the > second question is: what is light, simple, and well supported enough > to include? > > I think Blueprint or the full YUI is probably overkill. However, I > would just mention code.google.com/p/the-golden-grid/ with which I was > also very impressed for basic page layout. The author has a great > philosophy and it's so light and simple (is 1K small enough?!) that it > could easily be included with Web2py for the basic page divs. And, > if anyone doesn't like it, it's just as easy to tear up and > replace :-) > > -David -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] typos in new documentation?
Here is what reads on page "6.5. Query, Set, Rows", in part "orderby, groupby, limitby, distinct": --- You can fetch the records sorted by name in reverse order (notice the !): >>> for row in db().select(db.person.ALL, orderby= db.person.name): print row.name Carl Bob Alex --- There is no ! to notice. And shouldn't it be a ~? Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: Combining LEFT OUTER JOIN with COUNTING
It worked fine, thank you! Aurelien (I got it wrong because I had tried instead: count = db.person.id.count()) On Feb 18, 3:19 pm, mdipierro wrote: > Now sure try > > count = db.dog.id.count() > rows=db().select(db.person.id,db.person.name, count, > left=db.dog.on(db.person.id==db.dog.owner),groupby=db.person.id) > print row.person.name, row[count] > > On Feb 18, 7:03 am, aure wrote: > > > Hi, > > > I have used the methods given in the web2py manual, in the "One to > > Many Relation" part, to try and combine a left outer join with > > grouping and counting. But I did not manage. > > > The examples given are: > > > >>> rows=db().select(db.person.ALL, db.dog.ALL, > > >>> left=db.dog.on(db.person.id==db.dog.owner)) > > >>> for row in rows: > > > print row.person.name, 'has', row.dog.name > > Alex has Skipper > > Alex has Snoopy > > Bob has Puppy > > Carl has None > > > >>> count = db.person.id.count() > > >>> for row in db(db.person.id==db.dog.owner).select(db.person.name, count, > > >>> groupby=db.person.id): > > > print row.person.name, row._extra[count] > > Alex 2 > > Bob 1 > > > What should the query be to get such a result: > > Alex 2 > > Bob 1 > > Carl 0 > > > Thank you, > > Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: session.flash not displayed anymore
Thank you Massimo, I have tried it but nothing seems to have changed. Here is what I have: - def firstpage(): return dict() def secondpage(): session.flash=response.flash session.flash=T('You cannot view the secondpage, you are back to the firstpage!') redirect(URL(r=request,f='firstpage')) return dict() and in firstpage.html: {{=A('Link to secondpage',_href=URL(r=request,f='secondpage'))}} - The flash message is not displeayed though. But if I change the redirect to another page, let us say 'pagethree', then the flash message is displayed when 'pagethree' is displayed.. Aurelien On Feb 18, 3:21 pm, mdipierro wrote: > Usually this problem is caused by double redirect. Try add > > session.flash=response.flash > > at the top of your controller. This will carry forward the flash. You > do not want this in production but will help you identify the problem. > > On Feb 18, 7:20 am, aure wrote: > > > I just figured out that it only happens if I do a redirect to the page > > from which the controller was called. > > > It happens like this: > > - A link on a page "home" is clicked to access a page "book" but in > > the "book" controller because some conditions are not met, I set a > > message using session.flash('message') and do a redirect to "home". It > > goes to "home" but no message is displayed. > > > On the other hand, if the redirect is set to a page different from > > "home", then the message is displayed. > > > What should I do? Is the redirect not appropriate in the case we go > > back to the calling page? > > > Aurelien > > > On Feb 18, 1:54 pm, aure wrote: > > > > Hi everyone, > > > > Does someone have an idea about why session.flash might stop to work > > > (is not displayed) for my controllers but keeps on working for login, > > > logout,... > > > > Thank you, > > > Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: session.flash not displayed anymore
I just figured out that it only happens if I do a redirect to the page from which the controller was called. It happens like this: - A link on a page "home" is clicked to access a page "book" but in the "book" controller because some conditions are not met, I set a message using session.flash('message') and do a redirect to "home". It goes to "home" but no message is displayed. On the other hand, if the redirect is set to a page different from "home", then the message is displayed. What should I do? Is the redirect not appropriate in the case we go back to the calling page? Aurelien On Feb 18, 1:54 pm, aure wrote: > Hi everyone, > > Does someone have an idea about why session.flash might stop to work > (is not displayed) for my controllers but keeps on working for login, > logout,... > > Thank you, > Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Combining LEFT OUTER JOIN with COUNTING
Hi, I have used the methods given in the web2py manual, in the "One to Many Relation" part, to try and combine a left outer join with grouping and counting. But I did not manage. The examples given are: >>> rows=db().select(db.person.ALL, db.dog.ALL, >>> left=db.dog.on(db.person.id==db.dog.owner)) >>> for row in rows: print row.person.name, 'has', row.dog.name Alex has Skipper Alex has Snoopy Bob has Puppy Carl has None >>> count = db.person.id.count() >>> for row in db(db.person.id==db.dog.owner).select(db.person.name, count, >>> groupby=db.person.id): print row.person.name, row._extra[count] Alex 2 Bob 1 What should the query be to get such a result: Alex 2 Bob 1 Carl 0 Thank you, Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] session.flash not displayed anymore
Hi everyone, Does someone have an idea about why session.flash might stop to work (is not displayed) for my controllers but keeps on working for login, logout,... Thank you, Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: Ladies and Gentelmen... the web2py book is online
Great news! Thank you! The lulu and amazon links to purchase the book seem not to point to the right place (they both point to http://web2py.com/book/default/section) Aurelien On Feb 12, 2:30 am, mdipierro wrote: > http://web2py.com/book > > This is only for testing purposes. > Please try get an account and send me some feedback. > > You can try post and edit comments/wiki pages. > > I will reset the database in the next couple of days so do not be > surprised if you loose your account and changes. > > I will also try port over AlterEgo data and merge with appliances. > > Massimo -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: auth_user registration, password field: Order is relevant (OR other reason) OR bug?
Thank for your help! On Feb 11, 7:19 pm, mdipierro wrote: > make sure you ALWAYS pass > > CRYPT(auth.setting.hmac_key) > > to CRYPT. > > On Feb 11, 9:50 am, aure wrote: > > > Hi everyone, > > > I have customised my table for authentificaition, as shown by Massimo > > here:http://groups.google.com/group/web2py/browse_thread/thread/f4ae0f4c5b... > > > If I put CRYPT() before IS_NOT_EMPTY(...) in the list of requirements > > for the field 'password', users can register with an empty password. > > If IS_NOT_EMPTY(...) comes first, everything works fine. > > > Problematic Code: > > > Field('password', 'password', readable=False, label=T('Password'), > > requires=[CRYPT(),IS_NOT_EMPTY(error_message=T('enter a value'))]), > > > Non Problematic Code: > > Field('password', 'password', readable=False, label=T('Password'), > > requires=[IS_NOT_EMPTY(error_message=T('enter a value')),CRYPT()]), > > > Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] auth_user registration, password field: Order is relevant (OR other reason) OR bug?
Hi everyone, I have customised my table for authentificaition, as shown by Massimo here: http://groups.google.com/group/web2py/browse_thread/thread/f4ae0f4c5b9336d0/327ff8e49d88fbb3?lnk=gst&q=custom+authentication+form#327ff8e49d88fbb3 If I put CRYPT() before IS_NOT_EMPTY(...) in the list of requirements for the field 'password', users can register with an empty password. If IS_NOT_EMPTY(...) comes first, everything works fine. Problematic Code: Field('password', 'password', readable=False, label=T('Password'), requires=[CRYPT(),IS_NOT_EMPTY(error_message=T('enter a value'))]), Non Problematic Code: Field('password', 'password', readable=False, label=T('Password'), requires=[IS_NOT_EMPTY(error_message=T('enter a value')),CRYPT()]), Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: Error with mail sending and T(...)
Thanks a lot! I am not on my computer now, but I will try that tomorrow. On Feb 5, 10:32 pm, mdipierro wrote: > for now > > message=str(T('mail message')) > > instead of > > message=T('mail message') > > On Feb 5, 3:16 pm, aure wrote: > > > I am using web2py Version 1.74.11 > > > But I upgraded today from source and copied my app to the applications > > folder. > > > On Feb 5, 8:43 pm, mdipierro wrote: > > > > which version of web2py are you using? This was fixed recently I > > > think. > > > > On Feb 5, 1:41 pm, aure wrote:> Hi > > > everyone, > > > > > I am trying to make my application send a mail. It works fine using: > > > > > mail.send(to=[mail_to], subject='myApp request', message='mail > > > > message') > > > > > But if I use T(...) in the message: > > > > > mail.send(to=[mail_to], subject='myApp request', message=T('mail > > > > message')) > > > > > I get this error: > > > > > mail.send(to=[mail_to], subject='LibresLivres email: book request', > > > > message=T('mail message')) > > > > File "/home/aurelien/Documents/web2py/gluon/tools.py", line 283, in > > > > send > > > > text = text.read().decode(encoding).encode('utf-8') > > > > AttributeError: 'lazyT' object has no attribute 'read' > > > > > Is there a simple reason why it does not work? > > > > > Thanks, > > > > Aurelien > > -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: Error with mail sending and T(...)
I am using web2py Version 1.74.11 But I upgraded today from source and copied my app to the applications folder. On Feb 5, 8:43 pm, mdipierro wrote: > which version of web2py are you using? This was fixed recently I > think. > > On Feb 5, 1:41 pm, aure wrote:> Hi everyone, > > > I am trying to make my application send a mail. It works fine using: > > > mail.send(to=[mail_to], subject='myApp request', message='mail > > message') > > > But if I use T(...) in the message: > > > mail.send(to=[mail_to], subject='myApp request', message=T('mail > > message')) > > > I get this error: > > > mail.send(to=[mail_to], subject='LibresLivres email: book request', > > message=T('mail message')) > > File "/home/aurelien/Documents/web2py/gluon/tools.py", line 283, in > > send > > text = text.read().decode(encoding).encode('utf-8') > > AttributeError: 'lazyT' object has no attribute 'read' > > > Is there a simple reason why it does not work? > > > Thanks, > > Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Error with mail sending and T(...)
Hi everyone, I am trying to make my application send a mail. It works fine using: mail.send(to=[mail_to], subject='myApp request', message='mail message') But if I use T(...) in the message: mail.send(to=[mail_to], subject='myApp request', message=T('mail message')) I get this error: mail.send(to=[mail_to], subject='LibresLivres email: book request', message=T('mail message')) File "/home/aurelien/Documents/web2py/gluon/tools.py", line 283, in send text = text.read().decode(encoding).encode('utf-8') AttributeError: 'lazyT' object has no attribute 'read' Is there a simple reason why it does not work? Thanks, Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] web based editor lost functionalities
Hi everyone, I am new to web2py. I have started to make an application a few days ago and I was using the web based editor and it worked just fine. Yesterday I lost some functionalities of the web based editor like shortcuts (e.g CTR-s to save) and highlighting. Anybody knows how to fix it or why it could happen? Thank you, Aurelien -- 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, visit this group at http://groups.google.com/group/web2py?hl=en.