[web2py] MVC, where do reusable funcions go

2013-09-19 Thread jjg0
Say I have a set of math functions I want to use that aren't in python, like calculating a mortgage or something. I'm going to have a pretty large set of these, and it would be nice to keep them im a separate file that I can add to any projects in the future that might need them. Where would I

[web2py] Re: GAE Cron, or some equivelant

2013-08-21 Thread jjg0
r the > URLs of your jobs with curl <http://curl.haxx.se/> or a similar tool. > Are you on the dev server ? > > On Tuesday, August 20, 2013 10:00:41 PM UTC+2, jjg0 wrote: >> >> Still not getting this. >> The gae docs says 'A cron.yaml file in the root directo

[web2py] Re: GAE Cron, or some equivelant

2013-08-20 Thread jjg0
xplains a little bit what they are > > http://dl.google.com/io/2009/pres/Th_1045_Offline_Processing_On_App_Engine_A_Look_Ahead.pdf > > On Tuesday, August 20, 2013 7:54:10 PM UTC+2, jjg0 wrote: >> >> nothing? >> >> On Monday, August 19, 2013 7:49:03 AM UTC-4, jj

[web2py] Re: GAE Cron, or some equivelant

2013-08-20 Thread jjg0
nothing? On Monday, August 19, 2013 7:49:03 AM UTC-4, jjg0 wrote: > > I was referring to google app engine... > The book hasn't been very helpful > > On Friday, August 16, 2013 6:05:41 PM UTC-4, Massimo Di Pierro wrote: >> >> It all depends on how you run web2

[web2py] Re: GAE Cron, or some equivelant

2013-08-19 Thread jjg0
hen you need a > applications/app/cron/crontab file. if you run web2py with apache or other > server via fcgi or wsgi, than you should use the scheduler instead. This is > described in some detail in the book. > > > On Friday, 16 August 2013 11:59:27 UTC-5, jjg0 wrote: >> &g

[web2py] GAE Cron, or some equivelant

2013-08-16 Thread jjg0
I asked this in another topic but did not get any answers:( I have a table I want to update on a weekly basis and I'm trying to find a way to have this run automatically. I've looked around and it seems like I can use cron for this. I am using google app engine and their docs on cron are diff

[web2py] (GAE) periodic updates

2013-08-15 Thread jjg0
(Using google app engine if that matters) I have a table that I want to update on a weekly basis. Basically it's a simple table of users with a date field that gets set to the last time they did something and a field to indicate that they are active. I want to check every Monday which users we

[web2py] Re: hostmonster, pythonanywhere, or gae for my current situation

2013-04-20 Thread jjg0
:07 PM UTC-4, jjg0 wrote: > > Using the destination option './' in pythonanywhere gives me an error > saying the directory is not empty. If I use the destination option in any > folder, for example if i just create a test folder and try > > hg clone https://m...@bi

[web2py] Re: hostmonster, pythonanywhere, or gae for my current situation

2013-04-20 Thread jjg0
roject ./ > do try getting it to close into your current directory. (Untested but the > general is to tell hg where to put the clone, in this case ./ being current > directory) > > > ~Brian > > > On Thursday, April 18, 2013 7:36:56 PM UTC-5, jjg0 wrote: >> >>

[web2py] Re: hostmonster, pythonanywhere, or gae for my current situation

2013-04-20 Thread jjg0
how I would find whatever the new IP address should be. I could be wrong, and maybe I shouldn't touch this setting at all but I am completely out of ideas. Has anyone had any success using a custom domain on google app engine? On Thursday, April 18, 2013 8:36:56 PM UTC-4, jjg0 wrote: >

[web2py] Re: hostmonster, pythonanywhere, or gae for my current situation

2013-04-18 Thread jjg0
thonAnywhere account costs. > > Does your app need SSL? If so, Google App Engine may not work - SSL on > custom domain costs up to $40/month. If that is within your budget, it > seems the most stable/supported of your options. > > If that is too much, PythonAnywhere offers SS

[web2py] Re: Excellent Video about web2py but no sound or subtitles

2013-04-18 Thread jjg0
I was a little worried about the no sound or subtitles part but it's actually a really great video!. I'd love to see more like this, especially if commentary or notes could be added. On Wednesday, April 17, 2013 6:19:06 AM UTC-4, Ramos wrote: > > http://vimeo.com/8229814 > -- --- You receiv

[web2py] hostmonster, pythonanywhere, or gae for my current situation

2013-04-16 Thread jjg0
Hi Everyone I've been asked to replace a site for someone who currently has an account and domain with hostmonster. I made a demo for them they like with web2py and put it on google app engine. Aside from playing around with gae I've never actually deployed a web2py site. Pythonanywhere seems

[web2py] Re: any good open courses with web2py?

2013-04-11 Thread jjg0
The killer web app tutorial claims to be for people with no prior programming skills, is it strange to throw so much emphasis on testing in a course for people who have never programmed? I'm not sure if it is worth taking the time to get selenium working and learn how to use it, or if I should

[web2py] Re: any good open courses with web2py?

2013-04-11 Thread jjg0
k2 : http://killer-web-development.com/ > > El jueves, 4 de abril de 2013 08:37:15 UTC-5, jjg0 escribió: >> >> 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 >> m

[web2py] Re: any good open courses with web2py?

2013-04-05 Thread jjg0
Hi Massimo, This class looks really interesting. Do you have any more information on what types of projects you typically have students complete, what skill level you are expecting students to reach after completing the course, maybe a syllabus? For example do you try to gear your course towa

[web2py] any good open courses with web2py?

2013-04-04 Thread jjg0
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

[web2py] Re: Sending email with html links

2013-04-03 Thread jjg0
ve > links, which don't make sense in emails. > > Anthony > > On Tuesday, April 2, 2013 7:39:23 PM UTC-4, jjg0 wrote: >> >> I'm trying to send an email with html and links to pages. >> >> Simple example of what I am doing: >> >>

[web2py] Sending email with html links

2013-04-02 Thread jjg0
I'm trying to send an email with html and links to pages. Simple example of what I am doing: testlink = 'www.yahoo.com' email_body = "Testing Emails with HTMLfirst link testsecond link test" % testlink mail.send(to=['myyahoom...@yahoo.com'], subject='testing l

[web2py] Re: Moderation/My first question yesterday hasn't shown up yet but another today has

2013-03-20 Thread jjg0
Was your first question 'options_std.py/options.py breaks as-is on web2py 2.4.5 + a question'? I am able to see that listed without any problems. On Wednesday, March 20, 2013 10:45:06 AM UTC-4, wprins wrote: > > I posted a question yesterday and got a message that it was awaiting > approval (or

[web2py] Re: Create a pdf and attach it to a mail

2013-03-17 Thread jjg0
I'm not sure what you mean in the second option, when you say filelike object what are you referring to? I tried: ... ... attachments = mail.Attachment(pdf, filename='sample.pdf')) where pdf=MyFPDF() from the original example, but that doesn't work. I'm sure this isn't a new issue, but I hav

[web2py] Create a pdf and attach it to a mail

2013-03-16 Thread jjg0
I started looking at the MyFPDF examples and I am able to make simple pdf's. I want to be able to make a pdf and attach it to an email. Here is a simple example to show what I am doing and where I get lost: def sample(): from gluon.contrib.pyfpdf import FPDF, HTMLMixin class My

[web2py] select() - How to fetch specific fields?

2013-03-09 Thread jjg0
Hello again, I have another problem I've run into maybe someone can help with. Let's say I have a table of blog posts and all I want to do is print out all the titles. I'll make up a really simple example: MODEL: db.define_table('myBlog', Field('title'), Field('body', 'text'), Field('created_

Re: [web2py] Re: datetime - compare dates while ignoring time Part 2: Time Zones!

2013-03-04 Thread jjg0
e kind of function based on THEIR timezone >> (i.e. "press this button to delete all your appointments today") you really >> need to start fiddling with UTC and timezone differences. >> >> >> On Monday, March 4, 2013 7:08:23 PM UTC+1, jjg0 wrote: >&

[web2py] Re: datetime - compare dates while ignoring time Part 2: Time Zones!

2013-03-04 Thread jjg0
kind of function based on THEIR timezone > (i.e. "press this button to delete all your appointments today") you really > need to start fiddling with UTC and timezone differences. > > > On Monday, March 4, 2013 7:08:23 PM UTC+1, jjg0 wrote: >> >> I had asked a qu

[web2py] datetime - compare dates while ignoring time Part 2: Time Zones!

2013-03-04 Thread jjg0
I had asked a question about comparing datetimes here: https://groups.google.com/forum/?fromgroups=#!topic/web2py/2euU80vV2WE The question was answered but I ran into another problem closely related, so I made a sequel. Let's hope we don't have to suffer through a trilogy! Here is what I am doi

[web2py] Re: datetime - compare dates while ignoring time

2013-03-01 Thread jjg0
re may be some > conflict. Or try to define a new field or define a brand new table, and use > requires=IS_DATE() for the field. It is easier to test by a new table. > > Mark > > On Friday, March 1, 2013 7:06:01 PM UTC-5, jjg0 wrote: >> >> I may have marked this answer

[web2py] Re: routes, removing appname and controller from all links

2013-03-01 Thread jjg0
7:34:36 PM UTC-5, rh wrote: > > On Fri, 1 Mar 2013 16:14:57 -0800 (PST) > jjg0 > wrote: > > > Oh I wish it were that simple, but no I still see invalid requests > > when trying that:( > > > > Can anyone help me with this? I still have not resolved thi

Re: [web2py] routes, removing appname and controller from all links

2013-03-01 Thread jjg0
Oh I wish it were that simple, but no I still see invalid requests when trying that:( Can anyone help me with this? I still have not resolved this issue. On Friday, March 1, 2013 5:49:46 PM UTC-5, Rufus wrote: > > # As simple as this? (I'm new too) > > routes_in = ( > ('/$anything',

[web2py] Re: datetime - compare dates while ignoring time

2013-03-01 Thread jjg0
e 2nd too ? > > On Friday, March 1, 2013 2:51:53 AM UTC+1, jjg0 wrote: >> >> Hi Everyone! I have another 'new guy' question, for those who have been >> following me so far. >> >> I need to be able to look at two dates and determine if they match whil

[web2py] Re: datetime - compare dates while ignoring time

2013-03-01 Thread jjg0
e()' part not allowed in a query? I am not sure what to make of this. Any help would be appreciated. On Thursday, February 28, 2013 10:17:37 PM UTC-5, Mark wrote: > > If you only need date, use Field('appointment_date', 'date') instead. If > you want to keep &#

Re: [web2py] routes, removing appname and controller from all links

2013-03-01 Thread jjg0
0/contactus I get an invalid request. Using 127.0.0.1:8000/myapp/default/contactus works fine, but I don't want the app and controller in the url. Hope my explanation of the problem is clear. Thanks On Friday, March 1, 2013 10:51:29 AM UTC-5, Jonathan Lundell wrote: > > On 1 Mar

[web2py] routes, removing appname and controller from all links

2013-03-01 Thread jjg0
I've been having a lot of trouble trying to clean up my URLs. If my app name is myapp, and I go out an buy the domain myapp.com, when I deploy the site all the urls are going to read www.myapp.com/myapp/default/function. How do I get rid of the app name and controller? I've read the section i

[web2py] images in static folder

2013-02-28 Thread jjg0
Hi everyone, this one might be a really silly question but here goes: I have a folder of pictures for a site that I threw in the static folder. So for example, the path to an example.jpg might look like this: c:\web2py\applications\myapp\static\images\example.jpg. These aren't photos I'm expec

[web2py] datetime - compare dates while ignoring time

2013-02-28 Thread jjg0
Hi Everyone! I have another 'new guy' question, for those who have been following me so far. I need to be able to look at two dates and determine if they match while ignoring the time. Specifically, a date vs today Lets say I have a model of appointments and in that model there is some appoint

[web2py] db admin interface while deployed

2013-02-25 Thread jjg0
Quick background, I'm still very new to web2py and learning so be prepared for newbie questions from me! When working locally I've been using the admin interface to manage my tables. If I deploy a site, I no longer have access to this. (or maybe i do but I'm doing something wrong with gae). T

[web2py] Re: web2py and google app engine

2013-02-19 Thread jjg0
; On Tuesday, February 19, 2013 4:42:57 PM UTC+1, jjg0 wrote: >> >> I am new to both web2py and google app engine. Is there a good guide for >> running web2py on gae using python 2.7 from scratch? I've tried looking >> through some tutorials online but they all seem

[web2py] web2py and google app engine

2013-02-19 Thread jjg0
I am new to both web2py and google app engine. Is there a good guide for running web2py on gae using python 2.7 from scratch? I've tried looking through some tutorials online but they all seem to be out of date and I can't get this working on either python 2.7 or 2.5. I've run into problems