00:08:51 *** lifeeth has quit (Quit: Computer has gone to sleep - I think) 00:23:46 *** lifeeth (~praneeth@unaffiliated/lifeeth) has joined #web2py 01:31:58 *** mengu_ has quit (Remote host closed the connection) 01:59:18 *** elfgoh (~Adium@adsl254.dyn208.pacific.net.sg) has joined #web2py 02:13:05 *** ceej (~anonymous@95.211.92.234) has joined #web2py 02:13:15 *** ceej has quit (Remote host closed the connection) 02:50:31 *** pyToolmaker has quit (Ping timeout: 246 seconds) 03:39:43 *** pyhead (4229dc46@gateway/web/freenode/ip.66.41.220.70) has joined #web2py 03:40:44 hi guys 03:41:33 when I send email with this code web2py strips all the newlines so everything is mashed together on one linemessage_sent = mail.send(to=[to_email], message=[email_message,email_message],attachments=attachments) 03:42:45 html emails look fine because of course
tag is making the newline... is it sending my plain text emails as html? 04:13:38 *** blackthorne (~blackthor@unaffiliated/blackthorne) has joined #web2py 04:14:16 how can I extract the name and email from string: Name 04:17:36 hi 04:17:56 pyhead: have you found your answer? 04:18:32 not yet 04:18:43 I followed the example in the book 04:19:08 my email does not begin with so should be sent plain text but it ignores newlines for message text 04:19:13 while that is not a web2py specific question 04:19:27 one way of doing that is with regular expressions 04:19:50 I figured there would be some standard built-in way of parsing 04:19:55 the other is with find on '<' and '>' 04:20:18 ok 04:20:25 is it acceptable to have names with the character '<' or '>' ? 04:20:39 no 04:22:25 a='Name ' 04:22:33 name,email=a[:a.find('<')-1],a[a.find('<')+1:-1] 04:22:38 that is one way 04:24:25 thank you, that looks right 04:26:50 is this right? 04:30:14 depends on what you want to do 04:30:23 I made a guess, could be wrong 04:30:41 with regular expressions you can make something like 04:30:43 import re 04:31:04 it worked! 04:31:08 name, email = re.match(r'(.*?)<(.*?)>',a).groups() 04:31:50 any idea about the email issue? does that code look correct? 04:32:12 I didn't understand that problem 04:32:28 ignores newlines? 04:33:51 yes, an email that fills up whole screen is sent as email with all text on one line 04:34:24 you can send \n as well 04:34:29 like it strips out \n or is sending as html email in which case it would be on one line without
tags 04:34:31 why aren't you? 04:34:54 in my email I do press enter, which I presume is inserting \n (they are invisible) 04:35:02 in my form textarea there are multiple lines 04:35:14 what is the code that does that? 04:35:32 since the form until the email is sent? 04:36:05 hey I'm just starting out and sorting out how to query a db from scratch - made it in the model, now need to pull the full contents (later much more complex but just want to understand the basics now) and then toss them out in a table in the view. Everything in the book online has been bits and pieces and I'm lost on how to put them all together. 04:36:44 form = SQLFORM.factory(Field('from_email',requires=IS_NOT_EMPTY(), default=reply_to), Field('to_email', requires=IS_NOT_EMPTY()), 04:36:53 Field('email_message','text'), 04:37:05 that's how I get email_message that is getting mashed onto one line 04:37:49 message_sent = mail.send(to=[to_email], message=[email_message,email_message],attachments=attachments) 04:37:54 well I'm going to play with that then 04:38:18 usererror to search from db is like this 04:38:40 attachments = db(db.files.owner==auth.user.id).select() for attachment in attachments: print 'attachment',attachment['file'] 04:39:43 I just want to spit out all the contents first 04:39:54 but.. I'm saving that clip 04:40:42 pyhead: there is nothing wrong with your form 04:41:29 maybe the problem is in the code you are using to read messages 04:42:03 are you reading them in your email account or is there any python code you are using for that 04:42:03 I'm viewing test messages sent with that code on my iphone mail app 04:42:10 ok 04:42:25 please send me an email to blackthorne@ironik.org 04:42:27 I can send you one 04:42:31 to test in my iphone 04:42:33 ok 04:43:25 just tell me when you're done 04:56:51 got interrupted... ok sent 04:56:56 *** redShadow has quit (Quit: Leaving) 04:58:26 your message was sent "correctly" 04:58:31 <-- this guy again :/ .. if any of you can point me to complete sample code that'd really really kickass for controller and view.. I'd love to see it formatting and all. Jumped from php straight into this so I'm starting at zero 04:58:31 here it is: bGluZSAxDQpsaW5lIDINCmxpbmUgMw0KDQpkb3VibGUgc3BhY2UNCg0KDQp0cmlwbGUgc3BhY2U= 04:58:44 does it display on multiple lines? 04:59:37 usererror: suggestions -> search for "web2py" in www.vimeo.com , check the free book online at www.web2py.com/book and see examples for real appliances in www.web2py.com/appliances 04:59:55 done all of the above 05:00:08 any specific question? 05:00:42 basically I setup the db in the model, I just need to do everything in the controller and view to render the entirety of the db 05:00:45 usererror: the book has examples that show that 05:00:47 just a good ol * grab from it 05:01:07 hmm.. did not find them then, or its the little clips I have found that I have yet to successfully put together in the right order 05:01:19 usererror: check these snippets http://www.web2py.com/examples/default/examples 05:01:24 usererror: maybe you want grids or smartgrids 05:01:54 usererror: web2py installs with examples you can look at the code 05:02:03 usererror: try this inside a controller -> form = SQLFORM.smartgrid(db.your_table) 05:02:20 return dict(form=form) and then in the view {{=form}} 05:02:49 pyhead: are you in mac or linux ? 05:02:55 blackthorne: you received that as the message?? should be "line 1 line 2 line 3..." 05:02:58 mac 05:03:14 open your terminal and type: echo bGluZSAxDQpsaW5lIDINCmxpbmUgMw0KDQpkb3VibGUgc3BhY2UNCg0KDQp0cmlwbGUgc3BhY2U=|base64 -d 05:03:23 is that the message you sent? 05:03:42 echo bGluZSAxDQpsaW5lIDINCmxpbmUgMw0KDQpkb3VibGUgc3BhY2UNCg0KDQp0cmlwbGUgc3BhY2U=|base64 -d Apr 8 00:03:28 Cheebs.local base64[27689] : Read 77 bytes. Apr 8 00:03:28 Cheebs.local base64[27689] : Wrote 104 bytes. 05:03:50 no 05:04:08 ? 05:04:15 that's not what I receive when sending to myself either 05:04:27 that's the output i get from terminal... 05:04:55 and YkdsdVpTQXhEUXBzYVc1bElESU5DbXhwYm1VZ013MEtEUXBrYjNWaWJHVWdjM0JoWTJVTkNnMEtEUXAwY21sd2JHVWdjM0JoWTJVPQo 05:05:12 http://i.imgur.com/466rS.png 05:05:15 this is what I get 05:05:20 message body I typed said "line 1 line 2 line 3..." 05:05:34 that's it 05:05:50 so it's a bug in apple mail app?? 05:06:00 no, give me some mins 05:06:04 ok 05:06:43 strange mac base64 gives different output from linux ... 05:09:49 oh, it uses -D to decode... now it displays same as yours 05:10:06 that is weak 05:10:21 -d is debug 05:10:26 different syntax 05:10:27 why not just make them the same apple 05:10:27 just that 05:11:07 in your line: message_sent = mail.send(to=[to_email], message=[email_message,email_message],attachments=attachments) 05:11:07 [05:37am] 05:11:42 change it to: message_sent = mail.send(to=[to_email], message=[email_message,email_message],attachments=attachments, encoding='latin1')) 05:11:56 message_sent = mail.send(to=[to_email], message=[email_message,email_message],attachments=attachments, encoding='latin1') 05:19:37 *** robbyoconnor has quit (Ping timeout: 246 seconds) 05:23:30 pyhead: I know what is the problem 05:31:22 what is it? 05:36:25 pyhead: never mind, everything I said 05:36:32 it is your fault ;) 05:37:00 message_sent = mail.send(to=[to_email], message=email_message, attachments=attachments) 05:37:05 try this, it will work 05:38:19 when you make: mail.send(…, message=[PLAIN_TEXT_MESSAGE, HTML_MESSAGE] ... 05:38:33 you are using email_message in both plain_text and HTML 05:38:40 Mail.app chooses HTML 05:39:11 but you are just sending a plain text instead of HTML (you would need to raplace '\n' with
) 05:56:38 *** BlankVerse (~pankajm@202.3.77.219) has joined #web2py 06:10:58 *** BlankVerse has quit (Ping timeout: 244 seconds) 06:58:02 *** elfgoh has quit (Quit: Leaving.) 07:30:10 Anyone here with experience of web2py and MongoDB to tell me if the DAL should be used with Mongo already? 07:33:10 *** elfgoh (~Adium@adsl254.dyn208.pacific.net.sg) has joined #web2py 07:33:19 *** pyhead has quit (Ping timeout: 245 seconds) 07:35:10 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 08:02:01 *** usererror has quit (Ping timeout: 246 seconds) 08:06:35 *** gyaresu has quit (Quit: leaving) 08:06:53 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 08:08:11 *** gyaresu has quit (Client Quit) 08:08:27 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 08:22:55 *** gyaresu has quit (Read error: Connection reset by peer) 08:36:22 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 08:42:37 *** gyaresu has quit (Ping timeout: 246 seconds) 08:47:08 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 08:56:56 *** gyaresu has quit (Quit: leaving) 08:57:11 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 08:57:13 *** gyaresu has quit (Client Quit) 08:58:04 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 08:59:14 *** gyaresu has quit (Client Quit) 09:00:53 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:03:33 *** gyaresu has quit (Client Quit) 09:03:47 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:08:59 *** Signum has parted #web2py (None) 09:17:00 *** gyaresu has quit (Quit: leaving) 09:17:13 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:17:32 *** gyaresu has quit (Client Quit) 09:17:46 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:20:10 *** gyaresu has quit (Client Quit) 09:21:53 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:21:54 *** gyaresu has quit (Client Quit) 09:24:10 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:24:52 *** gyaresu has quit (Client Quit) 09:25:07 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:37:19 *** pyToolmaker (~pyToolmak@agsb-5d853b10.pool.mediaWays.net) has joined #web2py 09:37:38 *** gyaresu has quit (Quit: leaving) 09:37:53 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:48:02 *** gyaresu has quit (Quit: leaving) 09:48:14 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:48:33 *** gyaresu has quit (Client Quit) 09:48:50 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:49:38 *** gyaresu has quit (Client Quit) 09:52:12 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 09:52:33 *** gyaresu has quit (Client Quit) 09:53:27 *** elfgoh has quit (Quit: Leaving.) 09:56:39 *** pyToolmaker has quit (Remote host closed the connection) 10:50:53 *** elfgoh (~Adium@adsl21.dyn116.pacific.net.sg) has joined #web2py 10:59:53 *** Andrew_Cooper (~andrew@dsl-243-97-94.telkomadsl.co.za) has joined #web2py 11:00:27 *** elfgoh has quit (Ping timeout: 260 seconds) 11:05:11 *** elfgoh (~Adium@cm132.gamma157.maxonline.com.sg) has joined #web2py 11:09:46 *** elfgoh has quit (Ping timeout: 272 seconds) 11:10:24 *** elfgoh (~Adium@cm132.gamma157.maxonline.com.sg) has joined #web2py 11:11:51 *** elfgoh1 (~Adium@cm132.gamma157.maxonline.com.sg) has joined #web2py 11:15:11 *** elfgoh has quit (Ping timeout: 276 seconds) 11:16:09 *** elfgoh1 has quit (Client Quit) 11:30:04 *** elfgoh (~Adium@adsl21.dyn116.pacific.net.sg) has joined #web2py 11:42:22 *** mengu_ (~mengu@unaffiliated/mengu) has joined #web2py 12:12:42 *** mengu_ has quit (Remote host closed the connection) 12:22:38 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 12:34:11 *** gyaresu has quit (Ping timeout: 245 seconds) 12:47:50 *** TheAncientGoat (~quassel@175.142.178.34) has joined #web2py 13:02:21 *** redShadow (~redShadow@unaffiliated/redshadow) has joined #web2py 13:06:47 *** elfgoh has quit (Quit: Leaving.) 13:21:41 *** pyToolmaker (~pyToolmak@agsb-5d853b10.pool.mediaWays.net) has joined #web2py 14:10:24 *** coderhs has quit (Ping timeout: 250 seconds) 14:16:32 *** coderhs (coderhs@202.164.129.73) has joined #web2py 14:18:09 *** lifeeth has quit (Quit: Computer has gone to sleep - I think) 14:20:02 *** lifeeth (~praneeth@unaffiliated/lifeeth) has joined #web2py 14:20:45 *** lifeeth has quit (Client Quit) 14:29:40 *** TheAncientGoat has quit (Read error: Connection reset by peer) 14:30:50 *** blackthorne has quit (Ping timeout: 276 seconds) 14:32:53 *** mengu_ (~mengu@95.70.194.61) has joined #web2py 14:33:00 *** mengu_ has quit (Changing host) 14:33:00 *** mengu_ (~mengu@unaffiliated/mengu) has joined #web2py 14:58:42 *** elfgoh (~Adium@adsl155.dyn208.pacific.net.sg) has joined #web2py 15:03:28 *** elfgoh has quit (Ping timeout: 265 seconds) 15:08:59 *** elfgoh (~Adium@adsl241.dyn116.pacific.net.sg) has joined #web2py 15:09:20 *** gyaresu (~gyaresu@117.204.130.223) has joined #web2py 15:45:47 *** blackthorne (~blackthor@bl12-58-107.dsl.telepac.pt) has joined #web2py 15:45:47 *** blackthorne has quit (Changing host) 15:45:47 *** blackthorne (~blackthor@unaffiliated/blackthorne) has joined #web2py 16:42:31 *** ceej (~anonymous@cpe-72-190-40-203.tx.res.rr.com) has joined #web2py 17:00:54 *** testt (~test@177.35.8.109) has joined #web2py 17:13:17 *** gyaresu has quit (Ping timeout: 264 seconds) 18:32:18 *** lifeeth (~praneeth@unaffiliated/lifeeth) has joined #web2py 18:58:33 *** ceej_ (~anonymous@95.211.92.234) has joined #web2py 18:59:05 *** ceej_ has quit (Remote host closed the connection) 19:00:48 *** ceej has quit (Ping timeout: 244 seconds) 19:05:06 *** testt has quit (Quit: Saindo) 19:16:48 *** mengu_ has quit (Remote host closed the connection) 19:16:58 *** elfgoh has quit (Quit: Leaving.) 19:30:27 *** robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #web2py 20:23:47 *** blackthorne has quit (Read error: Connection reset by peer) 20:28:41 *** blackthorne (~blackthor@bl12-58-107.dsl.telepac.pt) has joined #web2py 20:28:41 *** blackthorne has quit (Changing host) 20:28:41 *** blackthorne (~blackthor@unaffiliated/blackthorne) has joined #web2py 20:44:18 *** mengu_ (~mengu@unaffiliated/mengu) has joined #web2py 21:06:11 *** blackthorne has quit (Read error: Connection reset by peer) 21:06:38 *** blackthorne (~blackthor@bl12-58-107.dsl.telepac.pt) has joined #web2py 21:06:38 *** blackthorne has quit (Changing host) 21:06:38 *** blackthorne (~blackthor@unaffiliated/blackthorne) has joined #web2py 21:07:06 *** Andrew_Cooper has quit (Ping timeout: 240 seconds) 21:12:37 *** blackthorne has quit (Read error: Connection reset by peer) 21:22:43 *** usererror (~User_Erro@c-71-231-225-30.hsd1.wa.comcast.net) has joined #web2py 21:50:58 *** blackthorne_ (~blackthor@bl12-58-107.dsl.telepac.pt) has joined #web2py 21:50:59 *** blackthorne_ has quit (Changing host) 21:50:59 *** blackthorne_ (~blackthor@unaffiliated/blackthorne) has joined #web2py 22:09:18 *** blackthorne_ has quit (Ping timeout: 260 seconds) 22:16:15 *** lifeeth has quit (Read error: Connection reset by peer) 22:21:54 *** lifeeth (~praneeth@unaffiliated/lifeeth) has joined #web2py 22:50:40 *** blackthorne (~blackthor@bl12-58-107.dsl.telepac.pt) has joined #web2py 22:50:40 *** blackthorne has quit (Changing host) 22:50:40 *** blackthorne (~blackthor@unaffiliated/blackthorne) has joined #web2py 23:02:34 *** _johnjohnson (~johnjohns@c-68-63-138-234.hsd1.pa.comcast.net) has joined #web2py 23:02:55 <_johnjohnson> hello everyone... I am getting the following error: table auth_user already exists 23:03:09 <_johnjohnson> on all of my applications, running locally 23:04:04 <_johnjohnson> localhost:8000/admin 23:04:26 <_johnjohnson> but every other application gives me table auth_user already exists 23:23:06 *** gcw|mbpro (~gcw@64-53-243-126.static.nap.wideopenwest.com) has joined #web2py 23:26:12 <_johnjohnson> the full error I'm getting is: table auth_user already exists 23:26:22 <_johnjohnson> anyone have any clue as to why that's happening? 23:30:41 *** _johnjohnson has quit (Quit: Leaving) 23:37:37 *** lifeeth has quit (Quit: Computer has gone to sleep - I think) 23:45:27 *** _johnjohnson (~johnjohns@c-68-63-138-234.hsd1.pa.comcast.net) has joined #web2py 23:48:38 <_johnjohnson> ok... I copied my applications to another directory, then deleted web2py and re-installed it (running from source) 23:49:12 <_johnjohnson> the welcome application is now working fine, but when I copied one of my apps over, it's giving me the same error 23:49:18 <_johnjohnson> table auth_user already exists