[web2py] Re: how to avoid committing sensitive data to github?
You can handle this in a number of way. Probably the easiest is just to use global variables for all your sensitive info and place them in config file. Then just add that config file to your .gitignore file. On Saturday, October 12, 2013 2:24:23 PM UTC-6, stefaan wrote: Hello all, When creating web2py applications, are there any best practices regarding ensuring you don't push sensitive data (e.g. email password) to github by accident? Do people test using new email addresses that were created specifically for testing web apps? Or perhaps someone has developed a script that automatically (temporarily?) removes sensitive data before committing? How about database contents? Should files like 0.py and database folder contents simply never be committed, and made part of .gitignore? (Apart from some initial version where mail settings and stuff like settings.security_key are empty...) I want to avoid having to take manual actions before committing/pushing because I expect that sooner or later I would make mistakes. Ideas on the topic or a link to explanation welcome... p.s. I already saw this, but I'm sure it's still up to date: What data should be private (for security) in a standard web2py installation?https://groups.google.com/forum/#!searchin/web2py/sensitive$20data/web2py/UBhDaekkT8Q/hMJWEycUGYUJ Best regards, Stefaan. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Best way to migrate from sqlite to postgresql (or other db)
Or you can try it the long, round about way - http://www.realpython.com/blog/python/web2py-migrating-from-sqlite-to-mysql/#.Ulm3xmTTXCU On Friday, October 11, 2013 6:14:43 PM UTC-6, François Delpierre wrote: Hi, For performance reason I would like to migrate my DB from sqlite to postgreSQL DB. What's the best way to do it. I spent some time with the export / db.import_from_csv_file(open('somefile.csv', 'rb')) and I just feel like I'm loosing my time for 2 hours. After trying to fix various problems, now I notice that all my keys are wrong, so the db.import_from_csv does not keep the id values, and so completely break the application. What is the recommended way to migrate from sqlite to an other DB (without breaking the application)? Thanks, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Custom Apache Config for PHP and Web2Py
in case anybody is interested ... http://mherman.org/blog/2013/08/25/custom-apache-config-for-php-and-web2py/ it's on reddit (web2py sub) and i just posted on hacker news - upvote if you want! cheers! -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Do you use web2py professionally?
I develop as much as I can in web2py. Scalability has a lot more to do with architecture and database design than the framework. If you are developing an MVP, you never want to think about scalability in the first place. Develop quickly, test the main features, pivot (if needed), and then grow or try something new .. On Monday, August 12, 2013 1:06:45 PM UTC-5, alastor...@gmail.com wrote: Hello Web2py users! I heard a lot about web2py. I spent some time to test it, and I loved what I have seen. But compared to Django, web2py seems to be used only for personal websites, or small apps. Do you know if there are people or companies using web2py to build professionnal applications? If you have already tried Web2py, would you use it professionnaly? why? Thank you! -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Request: Course about Web2py TDD + pledge for cash
Hello - I am the author of Real Python for the web - http://www.realpython.com. My course is focused on web development in Python, so I touch everything from web scraping to database programming as well as the various Python-based web frameworks - Flask, web2py, and Django. I am adding more material on unit testing and am currently building out a TDD chapter. Let me know if you have any questions. Cheers! On Monday, August 12, 2013 6:01:25 AM UTC-5, Arnon Marcus wrote: Have you seen this? www.google.co.il/url?q=http://www.kickstarter.com/projects/1369857650/real-python-for-web-development-featuring-web2pysa=Uei=7L8IUpv9JITBhAfO3ICgAgved=0CAgQFjAAsig2=O3-v5BoCopi7PkTsHu1ruAusg=AFQjCNETtaOj7l8Urfb41wH-_hxcATQg0w -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Re: Request: Course about Web2py TDD + pledge for cash
I'd love to hear more about your curriculum that you're going to be teaching. I wrote the course Real Python for the Web @ RealPython.com. I'd love to compare notes. :) On Mon, Aug 12, 2013 at 6:53 PM, Luca luca.de.alf...@gmail.com wrote: I will be teaching a web dev class at UCSC based on web2py, and I may make the videos available in YouTube. Starting around September 20. Email me if you are interested - l...@ucsc.edu Thanks! -Luca On Sunday, August 11, 2013 10:29:46 AM UTC-7, Mika Sjöman wrote: Hi I am trying to get started with TDD and web2py, but it is really hard since I do not have a CS degree. I have been studying this two courses at Coursera, and especially the former is awesome (I did not like the Intro to Systematic program design so much) https://class.coursera.org/**programming2-001/https://class.coursera.org/programming2-001/ # LTHP How to write quality code - awesome! https://class.coursera.org/**programdesign-001/class/indexhttps://class.coursera.org/programdesign-001/class/index #Systematic program design I just wanted to say that if anyone out there is thinking of writing a book or video course, I would certainly pay for it! Preferably a Udemy course that shows how to do functional testing, unit testing, front end Selenium, integration testing, proper cashing techniques for fast webites etc. Preferably with TDD or some other framework, building lets say 3 to 4 small simple projects from scratch. I am really sick and tired of writing code that blows up. While web2py gave me an awesome way to easily write code and get going, I have not made much progress writing better quality code with web2py. I think too much time has been spent on learning to program (the language / frameworks), while the problem for me has always been not being able to do proper software engineering. So here is a pledge. If any of you good TDD programmers do a small video course on writing web2py software with TDD, Selenium, version control etc, then Ill be happy to chip in 50 USD for such a course. How about a Udemy.com course? Here is the guide to get started: https://www.udemy.** com/official-udemy-instructor-**course/https://www.udemy.com/official-udemy-instructor-course/ For inspiration about topics I really reccomend looking at that LHTP Writing Quality Code at Coursera. Anyone else interesting in pledging cash to learn proper software design with Web2py? Maybe someone can make it a kickstarter? -- --- You received this message because you are subscribed to a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/pNsazmC3-7k/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] curious how you all handle database engine migrations
http://www.realpython.com/blog/python/web2py-migrating-from-sqlite-to-mysql/ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Noob Help - Starting from scratch
I created a Python-based course called Real Python for the Web that begins with the basics (database management, server-side and client-side programming), then moves into Flask and on to web2py. You create a number of applications and go over basic conventions/best practices. If you want, you can also learn the Python syntax as well through the first course, Real Python. Check out http://www.realpython.com. Feel free to email me at mich...@realpython.com if you have any questions. Good luck! On Sunday, June 16, 2013 5:35:49 AM UTC-7, Alessandro Piroddi wrote: Hi :) I guess this kind of post comes up a lot, but I tryed searching the group and I still have problems... so I'm trying to ask a direct question. I hope you won't mind ^__^ I am no programmer. I know a bit my way around HTML and CSS, had (long time ago) an idea on how to use Javascript. I'm starting to chew a liiitle bit of Python (using the Codeacademy.com free course) and just graduated from the 10Gen MongoDB free course. But my skills are still very low and I'm struggling with basically everything I try to do :P So I bumped into web2py and decided I wanted to build a website with it (and maybe link it to a MongoDB, but I'll see to it later). And, well, I'm hitting a wall ç_ç I thought I would use html and css AND some python here and there to link the pages I make to the underlying dynamic framework ... turns out every page is actually decontructed in a clockwork of elements, all heavily based on python language. I'm not understanding WHERE to put my hands to edit this or that element of any given page... and even when I figure it out by tryal and error, then I have no idea HOW to modify the content. Some things look more or less familiar, most don't, and I'm feeling like progressing in a very slow crawl ... that I'm doing it all wrong. My website should be pretty simple... a couple of static landing pages and a blog-like system to easily post news and updates (with tags etc). And I wanted to try and DO something before resorting to full read-through of the whole web2py book. (which I skimmed briefly anyway) Most tutorials I found are either very basic (like the Crash Course) and give no answers to my doubts, or very advanced, diving right into deep coding with no explanations to help along. Any help? Any pointers? Is a full and attentive read-through of the online book my only (or best) way to go BEFORE I even consider firing up the web2py program? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Re: web2canvas looks nice
Interesting. There's huge potential for projects like this: - http://javelinapp.com/ (http://pandodaily.com/2013/06/10/javelin-the-lean-startup-app-thats-a-product-of-lean-startup-methodology/) - http://www.kickstarter.com/projects/jmitchel3/coding-for-entrepreneurs/?ref=kicktraq To launch an MVP, it's so much more than coding. That's the easy part in my opinion. Plus, once you *find *something and get it validated, there's so much of the busy side that you have to focus on that many people tend to forget about. Anyway, I think web2py or perhaps Rails would be great for just tossing up a landing page, hit it with Adwords and see if the idea sticks. I'm writing a blog post on it now and creating a prototype using Flask. I'd love to hear more about your project and be involved in the alpha/beta. You can contact me on here or at mich...@realpython.com. Cheers! On Sunday, June 9, 2013 7:06:25 PM UTC-7, Gustavo Souza wrote: Hello guys, I'm the one responsible for this project, I intend to make it multi language, is currently only in Portuguese. 2013/6/8 samuel bonilla pytho...@gmail.com javascript: Alan solo me gusta la aplicación, me parece interesante. El 09/06/2013 08:32, Alan Etkin spam...@gmail.com javascript: escribió: wowww. nice LOL Do you like it or it makes you laugh? (or both?) Both is fine, although rare. -- --- You received this message because you are subscribed to a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/rfyhvXxtGcY/unsubscribe?hl=en. To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- ** * * *Gustavo de Souza Lima* gus...@agenciax4.com.br javascript: DESENVOLVEDOR *(21) 2423-4351* (escritório) *(21) 8163-0309* (celular) Twitter: @dodilei https://twitter.com/dodilei Google+: gplus.to/dodilei tech4noobs.agenciax4.com.br/ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: onvalidation
The logic makes sense in Rails. Something isn't quite clicking with DAL. class Event ActiveRecord::Base # Sets the end_date to be +duration+ months after the start_date def duration=(duration) self.end_date = self.start_date + duration.to_i.months end end %= form_for(@event) do |f| % %= f.date_select :start_date % %= f.select :duration, [[6 months, 6], [1 year, 12], [2 years, 24]] % %= f.submit % % end % -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] onvalidation
I'm slightly confused on how to make a calculation and then update a SQL field after a form is validated. What I'm trying to do is this: http://www.screencast.com/users/Mike_Extentech/folders/Jing/media/70a2511b-f978-458b-8d4c-9a635b191a33 Essentially, the end_date field is dependent on the data inputed into the other two fields, start_date and length. So once the form is validated, a calculation is triggered then the data is inserted into the database for the end_date field. Does that make sense? I'm also using the SQLFORM.grid default view for adding records. Thanks! -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Re: onvalidation
Basic example: db.define_table('contact', Field('contract_start','date'), Field('contract_length','string'), Field('contract_renewal','date', writable=True, readable=True, compute=lambda r: (r['contract_start']+r['contract_length'])) db.contact.contract_start.requires = IS_DATE(format=T('%m-%d-%Y'), error_message='Must be MM-DD-!') db.contact.contract_renewal.requires = IS_DATE(format=T('%m-%d-%Y'), error_message='Must be MM-DD-!') db.contact.contract_length.requires = IS_IN_SET(['6 months', '1 year', '2 year's, '3 years']) Thanks. As far as the DAL goes, I am using SQLite, and I know I can do something like this to add a specific time period to a date by using the following statement - INSERT date('now','+10 day'); Is there a DAL equivalent? I didn't see anything in the book. Seems like this would be too low of a function to be part of the DAL. On Mon, Apr 15, 2013 at 11:52 AM, Niphlod niph...@gmail.com wrote: either with onvalidate or with a computed field read it on the book ^_^ http://web2py.com/books/default/chapter/29/06#Computed-fields On Monday, April 15, 2013 8:34:48 PM UTC+2, Michael Herman wrote: I'm slightly confused on how to make a calculation and then update a SQL field after a form is validated. What I'm trying to do is this: http://www.screencast.com/users/Mike_Extentech/folders/Jing/media/70a2511b-f978-458b-8d4c-9a635b191a33 Essentially, the end_date field is dependent on the data inputed into the other two fields, start_date and length. So once the form is validated, a calculation is triggered then the data is inserted into the database for the end_date field. Does that make sense? I'm also using the SQLFORM.grid default view for adding records. Thanks! -- --- You received this message because you are subscribed to a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/f-14OLOhKpM/unsubscribe?hl=en. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: any good open courses with web2py?
will this be an online class per chance for extended/adult students? On Thursday, April 4, 2013 4:14:01 PM UTC-7, Luca wrote: I am considering teaching one such class in connection with UCSC in the Fall of this year. Luca On Thursday, April 4, 2013 6:37:15 AM UTC-7, jjg0 wrote: Are there any good self paced learning courses on webdev with web2py? So far I am enjoying learning how to make websites with web2py. I don't mind spending a little money on courses or learning material, but I really only do this as a hobby so I'm not interested in shelling out several grand for courses that offer college credits, degrees, certificates, or any of those intensive bootcamps. Looking at other online courses offered that aren't in web2py I see some really good ideas for projects I would like to be able to build. One site, for example, had a netflix clone as a final project with ruby on rails, complete with commerce and everything you would need. Unfortunately the site was very expensive and not in web2py:( Playing around with php a while back before I found web2py I remember following several teach yourself projects but found them to be incomplete. For example, there were a lot of build a blog tutorials but the end result was a form to enter blog entries and a page that grabbed entries from the db and displayed them. I didn't like this because the end result was a blog you couldn't actually use, there was no search features, no tagging, no commenting, no user auth, etc. I can build simple sites, so I'm not looking for an introductory course. For example, the last site I made with web2py was for my friends school with the following: -School information, schedules, location, instructors, etc -a blog like feature to post upcoming events. I posted links to only future events on the front page. This behaved similar to a blog -a blog for the owner to blog about his school or whatever else he wanted. Had an archive dropdown menu, comments were working at one point but disabled on request of the owner -2 forms for people to signup or ask questions. A pdf page can be generated based on the information provided, and a link is emailed to the owner. I was originally going to just make a pdf and mail that to the owner as an attachment, but I could never get that working This wasn't too hard to make, but I struggled on a few parts and my code may not exactly be best practice. It would be nice to find tutorials or open courses I could follow with more challenging projects to get me making more complicated sites and breaking any bad habits I may have picked up. Any Suggestions? Thanks -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] web2py shell vs terminal shell
i remember reading somewhere that it's better to use the built-in shell in web2py, but i can't find the article/post. anyone know (1) if it is better, and, (2) if so, why? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Re: web2py shell vs terminal shell
yes. so when working with DAL directly from the shell it's better to work from the web2py shell in the terminal rather than the admin app shell? any idea why? On Fri, Apr 5, 2013 at 2:43 PM, Anthony abasta...@gmail.com wrote: By built-in shell, do you mean the one in the admin app? I think there are sometimes problems with that (particularly with database operations), so I tend to use the web2py shell in the terminal, which you can start as follows from the web2py directory: python web2py.py -S yourapp/[optional controller] -M But you may fine the admin shell works just fine for you, in which case, use it. Anthony On Friday, April 5, 2013 4:57:49 PM UTC-4, Michael Herman wrote: i remember reading somewhere that it's better to use the built-in shell in web2py, but i can't find the article/post. anyone know (1) if it is better, and, (2) if so, why? -- --- You received this message because you are subscribed to a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/XWMt1Pb_2wk/unsubscribe?hl=en. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: I need a double entry accounting software ....
interesting project. as a former accountant, being able to pull/push data to QB is a must. unfortunately, the QB web api is terribly documented. i have updated docs on how to use it to pull data (let me know if you're interested). this would definitely be something i'd keep in the back of your mind as you add functionality. On Friday, February 22, 2013 4:43:41 PM UTC-8, Massimo Di Pierro wrote: ... so I wrote this: https://github.com/mdipierro/pacioli It is a clone of http://furius.ca/beancount/. It is not based on web2py but it is implemented as a library and it can easily be integrated with web2py to make an ERP for example. Beancount is GPL while pacioli is BSD. It takes as input a ledger file (or the ledger can be created via API) and it produces various reports in PDF and Latex (they can and will be improved). The idea is you log your transactions in the ledger input file and/or you call the API to built your ledger from the database and pacioli will compute your balances, profits and losses, capital gains, and make you reports. At this time it is not based on web2py but it would be nice to have an app that uses it. It may need more testing and knowledge of accounting is limited. Comments for improvements? Massimo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Real Python for Web Development, featuring web2py
Hi All - So I posted an update to the KickStarter earlier. I 100% agree about the blog/wiki-type examples - it's done too much. I am going to open up a survey next week to see what people would like to see developed. In the meantime, email or message me with your ideas about what you'd like developed. Also, if I did do a blog or wiki, it would have many more components than just the basic example. Thanks for the feedback! :) On Tuesday, February 5, 2013 9:28:50 AM UTC-8, rochacbruno wrote: Take a look: http://www.kickstarter.com/projects/1369857650/real-python-for-web-development-featuring-web2py Why Web2py? web2py is an open-source web framework for rapid development. You can get up in running in less than 10 minutes and build a full-featured application in under an hour. Much like the Python language itself, web2py is designed for beginners to quickly get up to speed as well as advanced users. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.