[web2py] websocket_send() on db insert

2015-05-01 Thread 'sasogeek' via web2py-users
is there a way to execute some script anytime there's a db insert (either from a form or by manual insert query, or any db query for that matter)? and by script, i'd want to use websocket_send to send some messages anytime something goes in or out of the db with regards to some specific tables.

[web2py] Re: unknown error on production server! I need help fixing it asap ['NoneType' object is not callable]

2015-04-15 Thread 'sasogeek' via web2py-users
"A lighter alternative could be to add an _after_delete/_after_update callback to auth_table that would search and delete any sessions owned by the user" isn't that what cascade does? On Wednesday, 15 April 2015 16:12:01 UTC+1, Leonel Câmara wrote: > > I think we have to take the performance hit

[web2py] Cron-like job

2015-04-13 Thread 'sasogeek' via web2py-users
I want to do something but I doubt cron is the right thing to attempt, I'm not even sure what I'm supposed to do except that it's going to be a scheduled task and it may or may not be solved by cron, I need some guidance. I want to simulate a bank. users get to 'save' some (virtual) money in th

[web2py] Re: Multiple file download

2015-04-11 Thread 'sasogeek' via web2py-users
ument in URL() and now it works. it zips the file, saves it, then downloads it, Now the next thing I want to do is delete the saved zip file from inside my app once it has been downloaded. On Saturday, 11 April 2015 19:43:47 UTC+1, sasogeek wrote: > > I zipped the files and saved it in a f

[web2py] Re: Multiple file download

2015-04-11 Thread 'sasogeek' via web2py-users
ant to use ^^) > > On Saturday, April 11, 2015 at 1:47:19 PM UTC+2, sasogeek wrote: >> >> Is there a way I could download all the files in a db or loop through a >> db selection and download all associated files via maybe just a click on a >> link? >> > --

[web2py] Multiple file download

2015-04-11 Thread 'sasogeek' via web2py-users
Is there a way I could download all the files in a db or loop through a db selection and download all associated files via maybe just a click on a link? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] Re: Using ajax to call a function that uses LOAD, not working

2015-04-11 Thread 'sasogeek' via web2py-users
files somewhere. You should never have to put > a 'style' attribute on anything if they are part of the right class, or > nested properly. > > On Thursday, April 9, 2015 at 7:25:24 PM UTC-7, sasogeek wrote: >> >> I guess I may still have an issue with understan

[web2py] Re: Using ajax to call a function that uses LOAD, not working

2015-04-08 Thread 'sasogeek' via web2py-users
I was doing it the wrong way i think, but i did a workaround. I used the A helper to place a button on the page and when it's clicked it replaces itself with the form at statusform.load with ajax=True, and it works just fine On Tuesday, 7 April 2015 15:11:58 UTC+1, sasogeek

[web2py] Using ajax to call a function that uses LOAD, not working

2015-04-07 Thread 'sasogeek' via web2py-users
default.py @auth.requires_login() def load_home(): loader = """$('#right-side').html("")""" websocket_send('http://127.0.0.1:', loader, 'mykey', 'home%s' % auth.user.id) remove_class1 = "$('#bk').removeClass('active')" #books remove_class2 = "$('#ls').removeClass('active')"

Re: [web2py] Developer network

2015-04-05 Thread 'sasogeek' via web2py-users
Hmmm, I guess I never saw github as that... never really explored it, just have an account there. Will take a look and see what I can learn from it. Thanks On Monday, 6 April 2015 06:07:21 UTC+1, Phyo Arkar wrote: > > Github? > > On Mon, Apr 6, 2015 at 11:10 AM, 'sasogeek&

[web2py] Developer network

2015-04-05 Thread 'sasogeek' via web2py-users
Hello, I'm wondering if there's a social media platform for app developers? I want to build one as an open source project using web2py... any thoughts, ideas, something to look on to start with? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: unknown error on production server! I need help fixing it asap ['NoneType' object is not callable]

2015-04-05 Thread 'sasogeek' via web2py-users
Thanks Leonel Somehow that worked! But I have no idea why it worked... seeing as you suggested it, can you explain to me please? Thanks again though. On Sunday, April 5, 2015 at 9:15:56 AM UTC+1, Leonel Câmara wrote: > > If you clear your browser cookies (you can try using a private browsing > w

[web2py] unknown error on production server! I need help fixing it asap ['NoneType' object is not callable]

2015-04-04 Thread 'sasogeek' via web2py-users
I have an app on a live server which part of my school uses. Somehow it spits out this error when I tried to login tonight. Before it happened, I logged in to my vps.net account and went to the console page, I saw a button there "Ctrl+Alt+Del". I don't know what it is but as I do with most thing

[web2py] How does one get their web2py sites on the poweredby page?

2014-08-28 Thread 'sasogeek' via web2py-users
If I made a web app with web2py, how do I get it listed on the poweredby page ? -- 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) -

[web2py] vps.net ubuntu script installation for web2py doesn't appear to work

2014-08-25 Thread 'sasogeek' via web2py-users
I just watched the vimeo video made by Massimo some time back and used it as a guide to get web2py running on a node I just acquired at vps.net. Once everything was done, I tried to go to the ip but all I get is the default apache server page. It works! This is the default web page for this se

[web2py] Re: a selective select

2014-08-20 Thread 'sasogeek' via web2py-users
That works, thanks. On Wednesday, 20 August 2014 15:30:26 UTC, Niphlod wrote: > > isn't IS_IN_DB enough when you specify a set ?, e.g. > IS_IN_DB(db(db.other_table.field == True), 'other_table.id', '%(name)s') ? > > On Wednesday, August 20, 2014 5:26:29

[web2py] Re: a selective select

2014-08-20 Thread 'sasogeek' via web2py-users
hen you specify a set ?, e.g. > IS_IN_DB(db(db.other_table.field == True), 'other_table.id', '%(name)s') ? > > On Wednesday, August 20, 2014 5:26:29 PM UTC+2, sasogeek wrote: >> >> I don't know if the title of the question makes any sense but here's

[web2py] a selective select

2014-08-20 Thread 'sasogeek' via web2py-users
I don't know if the title of the question makes any sense but here's what I want to achieve. In the model db.py, i can have a field that references another table via Field('fieldname', db.other_table), but this gives me a select html element in the views which has all the items in the other_tab

[web2py] How to restrict file type to pdf

2014-08-06 Thread 'sasogeek' via web2py-users
How can I restrict the uploaded file type to only pdf? I know that with images i could use the IS_IMAGE() validator, I don't know how to do same for pdf files though. help...? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Python and Web2py course

2014-08-04 Thread 'sasogeek' via web2py-users
Next semester, I'll be a 3rd year student in my university. My plans for next semester include me organizing some sort of classes (and a web2py club) for students to learn web application development with web2py. Any ideas what I should be teaching or how I should go about it? I haven't done so

[web2py] emailing a pdf view as an attachment

2014-08-03 Thread 'sasogeek' via web2py-users
I have a form, and i display the details entered in the form on .pdf views page. Is it possible to use web2py to email that generated pdf page to someone? what I want to achieve is to allow users to fill the form and then click a button to send the pdf containing the entered details without dow

[web2py] Re: Bootstrap is really killing web2py

2014-07-26 Thread 'sasogeek' via web2py-users
So... I'm not really sure what this whole conversation is about, as to whether it's an issue of web2py coming with bs2 by default or some difficulty in implementing bs3. I use bs3 just fine in my web2py apps and really haven't had any issues.. On Friday, 18 July 2014 19:17:34 UTC, Moustafa Mahm

[web2py] Re: Alternative IDEs?

2014-07-15 Thread 'sasogeek' via web2py-users
inux but it happens). you're starting python2.7 and getting an > exception from "c:\csvn\python25" check your %PATH% or learn to > use virtualenv ^_^' > > On Tuesday, July 15, 2014 7:19:57 AM UTC+2, sasogeek wrote: >> >> I keep getting this

[web2py] Re: Alternative IDEs?

2014-07-14 Thread 'sasogeek' via web2py-users
LL load failed: %1 is not a valid Win32 application. On Monday, 14 July 2014 14:05:15 UTC, Jim S wrote: > > PyCharm - paid version has web2py integration. > > -Jim > > On Monday, July 14, 2014 7:35:43 AM UTC-5, sasogeek wrote: >> >> Are there any alternative IDEs fo

[web2py] Re: Annotations

2014-07-14 Thread 'sasogeek' via web2py-users
, July 14, 2014 11:01:11 AM UTC-4, sasogeek wrote: >> >> I just think that since there's that concept of decorators and the fact >> that there's quite a number of them and functions they perform, it'd be >> good to have them all listed somewhere with (at the

[web2py] Re: Annotations

2014-07-14 Thread 'sasogeek' via web2py-users
orators in the Access Control chapter, the @cache decorators in the Core > chapter, etc.). Is there a reason you need a decorator-centric view of the > documenation? > > Anthony > > On Monday, July 14, 2014 8:28:42 AM UTC-4, sasogeek wrote: >> >> Is there a place

[web2py] Re: Alternative IDEs?

2014-07-14 Thread 'sasogeek' via web2py-users
I just checked out PyCharm and it looks just like IntelliJ for java. Just what I had in mind! :) Thanks Jim. Samuel. On Monday, 14 July 2014 14:05:15 UTC, Jim S wrote: > > PyCharm - paid version has web2py integration. > > -Jim > > On Monday, July 14, 2014 7:35:43 AM UTC

[web2py] Alternative IDEs?

2014-07-14 Thread 'sasogeek' via web2py-users
Are there any alternative IDEs for web2py? I'm in search of an IDE for web2py that can help me find methods and variables easily. for example autocomplete options to choose from after using a dot operator? the default browser ide lacks quite a number of things in making programming easy. Web2py

[web2py] Annotations

2014-07-14 Thread 'sasogeek' via web2py-users
Is there a place in the documentation or somewhere on the web that lists all the annotations/decorators in web2py and explains how to use them? like @auth.requires_login, etc. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Table column/cell width not specified, unable to continue

2014-07-13 Thread 'sasogeek' via web2py-users
I'm trying to render a list of all first names in my auth_user table in a pdf but an error (the one in this question's title) slaps me in the face! Need some help figuring out how to resolve it. Controller def finish(): users = db().select(db.auth_user.ALL) return dict(users=users) View

[web2py] Web2py Hosting

2014-05-22 Thread 'sasogeek' via web2py-users
I've been looking around for python hosting websites that I can get my web2py deployed on but none of them is easy to work with. I'd rather prefer the ease to work on my application than having the headache of getting online, which really should be easy to do. I tried the solution given me in t

[web2py] Re: is the web2py.js Ajax functionality broken?

2014-05-20 Thread 'sasogeek' via web2py-users
ed :) On Wednesday, 21 May 2014 00:32:50 UTC, sasogeek wrote: > > I just did a minimal ajax process and it doesn't work! the onkeyup demo in > the book works when i try though, but onclick just messes with me... i've a > few places in my application where onchange also tri

[web2py] Re: is the web2py.js Ajax functionality broken?

2014-05-20 Thread 'sasogeek' via web2py-users
try it. must it be in a form? is it specific to only some elements? what am i missing... :/ On Tuesday, 20 May 2014 23:19:57 UTC, sasogeek wrote: > > I tried that... no luck. I think it's because there's multiple answers and > all of them have the form input with n

[web2py] Re: is the web2py.js Ajax functionality broken?

2014-05-20 Thread 'sasogeek' via web2py-users
above, 'like' is a relative URL (i.e., it doesn't start with a > "/"), which means it will simply be appended to the URL of the current > page. Instead, use the web2py URL helper: > > ajax('{{=URL('default', 'like')}}', ...) > > Anth

[web2py] is the web2py.js Ajax functionality broken?

2014-05-20 Thread 'sasogeek' via web2py-users
I'm not sure if it's just me or it's the js file or it's the code I'm writing but something is definitely wrong... here's what's not working. Model (db.py) Answer=db.define_table( 'answers', Field('answer', 'text', requires=IS_NOT_EMPTY(), notnull=True,), Field('image', 'upload', req

[web2py] Re: Application Licensing

2014-05-19 Thread 'sasogeek' via web2py-users
lot of time with this project, I also think of value for the time I've put in. (But yes now I'm seriously staring at Open Source in the face! :) ) On Monday, 19 May 2014 21:07:10 UTC, sasogeek wrote: > > I haven't considered OS, not that I'm against it. But hypothetically &g

[web2py] Re: Application Licensing

2014-05-19 Thread 'sasogeek' via web2py-users
s, css, etc) > could have its own license model. > Also, you should choose beforehand if you want to release it as an open > source project or not. > > On Monday, May 19, 2014 2:09:32 PM UTC+2, sasogeek wrote: >> >> That actually is my question. I don't kno

[web2py] Re: Application Licensing

2014-05-19 Thread 'sasogeek' via web2py-users
gt; > > You can license your app however you'd like. > > Anthony > > On Monday, May 19, 2014 6:53:05 AM UTC-4, sasogeek wrote: >> >> How do I license a web2py application for commercial use? I'd like to >> have a license that's renewable every

[web2py] Application Licensing

2014-05-19 Thread 'sasogeek' via web2py-users
How do I license a web2py application for commercial use? I'd like to have a license that's renewable every 6 months. From a few similar questions I've read, I've gathered that web2py does allow commercial distribution but must be stated in the documentation that the application uses web2py...

[web2py] Re: Custom login form error

2014-05-17 Thread 'sasogeek' via web2py-users
So do I return response.flash or I return session.flash? -- 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 subscr

[web2py] Custom login form error

2014-05-16 Thread 'sasogeek' via web2py-users
I have a custom login form that displays the error when the email is invalid (eg. like someone submits an email with a wrong email format, i.e, without @domain.com for example), but when an email that's not in the database is submitted, nothing happens, the page just reloads. Also, if an email

[web2py] Create iOS, Android(.apk) clients for your web2py apps in minutes with this

2014-03-22 Thread sasogeek
What do you mean by consumes your web2py services? Is there such a platform that simply packages a fully built web2py app into an android app? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Re: how to resize an expand_one rendered content

2014-03-08 Thread sasogeek
Can you please give an example how? I tried altering the dimensions from the autolinks.py file and it didn't work, and really idk where else i can apply css since i don't see the rendering code until after it's rendered... what i write is {{=XML(expand_one(... , ...))}} Not sure where or how I c

[web2py] google docs viewer rendered size issue

2014-03-01 Thread sasogeek
{{=XML(expand_one( 'http://www.official-notebook.com/notebook/default/download/'+str(update[ 'file']),cache.ram('mycache',lambda:dict(),3600)))}} update['file'] is a file uploaded to my app with a .docx extension which means that it's supposed to open in a google docs viewer. That works fine, bu

[web2py] Re: expand_one not working

2014-02-18 Thread sasogeek
Help please... On Tuesday, 18 February 2014 16:08:57 UTC, sasogeek wrote: > > in db.py, the table status is defined as follows > db.define_table( > 'status', > Field('status', 'text'), > Field('file', 'upload'), >

[web2py] expand_one not working

2014-02-18 Thread sasogeek
in db.py, the table status is defined as follows db.define_table( 'status', Field('status', 'text'), Field('file', 'upload'), Field('userid'), ) and in default.py, the download function is defined as def download(): """ allows downloading of uploaded files http:///[

[web2py] Re: expanding files

2014-02-16 Thread sasogeek
if I can use expand_one to do so, I don't know how... please help On Monday, 17 February 2014 07:39:42 UTC, sasogeek wrote: > > is there a function like expand_one that allows you to display (.txt .docx > .pptx .pdf) files? > -- Resources: - http://web2py.com - http:

[web2py] Re: expanding files

2014-02-16 Thread sasogeek
if I can use expand_one to do so, I don't know how... please help On Monday, 17 February 2014 07:39:42 UTC, sasogeek wrote: > > is there a function like expand_one that allows you to display (.txt .docx > .pptx .pdf) files? > -- Resources: - http://web2py.com - http:

[web2py] expanding files

2014-02-16 Thread sasogeek
is there a function like expand_one that allows you to display (.txt .docx .pptx .pdf) files? -- 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 receive

[web2py] Re: pythonanywhere signup not working

2014-02-15 Thread sasogeek
ogle.com/recaptcha/api/challenge?k=6LfGWO0SALiD4gZ44IR2kroUsh-1969UPf9h"</a>; type="text/javascript"> http://www.google.com/recaptcha/api/noscript?k=6LfGWO0SALiD4gZ44IR2kroUsh-1969UPf

[web2py] pythonanywhere signup not working

2014-02-15 Thread sasogeek
I wrote a custom register form that works on my local machine during development, I deployed it to pythonanywhere and now the register form isn't working... what could be the problem? idk what to do exactly register = auth.register(next="verify") locally, register takes me to /verify if there ar

[web2py] Re: Dreamhost deployment

2014-02-09 Thread sasogeek
b2Py (and MySQL) are already installed there and wait for you as > consoles. > So you have the familiar W2P interface waiting for you to work in the > cloud like you are doing it locally. > Good luck > > > On Thursday, February 6, 2014 8:37:08 PM UTC-5, sasogeek wrote: >>

[web2py] Re: Dreamhost deployment

2014-02-08 Thread sasogeek
Shared hosting -- 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" g

[web2py] Dreamhost deployment

2014-02-06 Thread sasogeek
how do I install python 2.7 and web2py on dreamhost with a windows environment? I looked at the dreamhost wiki but their tutorial assumes installation from a linux environment... help? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] Re: crud form errors

2014-01-16 Thread sasogeek
anuary 15, 2014 8:49:23 AM UTC-5, sasogeek wrote: >> >> I have a crud login and registration form with my own html, I don't >> extend the layout.html. How do I display the form errors when a user >> submits empty or invalid inputs? > > -- Resources: - http://

[web2py] crud form errors

2014-01-15 Thread sasogeek
I have a crud login and registration form with my own html, I don't extend the layout.html. How do I display the form errors when a user submits empty or invalid inputs? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] web2py and phonegap

2013-11-14 Thread sasogeek
I've only recently learned of phonegap and i've seen a few posts concerning web2py and phonegap in this forum but i'd like to ask a question of my own since they're questions from last year and maybe there may have been new developments that do not follow up on those threads, and my question is,

[web2py] security concerns

2013-11-13 Thread sasogeek
A friend wants me to build a loaning system applocation for him. This raises a few flags considering that it deals with money and people's personal information. But I'm particularly concerned about the security of web2py... I want to be able to assure him that the system will be secure. I have n

[web2py] Conditional drop down menu

2013-08-26 Thread sasogeek
I've made a database table in this format, db.define_table('user', Field('country', requires=IS_IN_DB(db, 'country.id', '%(name)s')), Field('school', requires=IS_IN_DB(db, 'school.id', '%(name)s')), ) db.define_table('country', Field('name'), ) db.define_table('school', Field('nam

[web2py] how to arrange a joined selection

2013-08-13 Thread sasogeek
if i join 2 selections via rows = A | B for example, how do i make sure that rows is arranged via the table id, like in .select(orderby=db.table.id) ? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and sto

[web2py] Re: Database update doesn't reflect in view

2013-08-12 Thread sasogeek
pdated again until next login (i.e., updating the db.auth_user record does > not update auth.user). So, you'll have to explicitly update auth.user.money > as well. > > Anthony > > On Sunday, August 11, 2013 12:42:45 PM UTC-4, sasogeek wrote: >> >> in a function in d

[web2py] Database update doesn't reflect in view

2013-08-11 Thread sasogeek
in a function in default.py, i have this code #... if request.vars.uploader_id: uploaderid = request.vars.uploader_id uploader = db(db.auth_user.id==uploaderid).select() db(db.auth_user._id==uploaderid).update(**{'money':uploader[0].money+500}) db(db.auth_user._id==auth.user.id).

[web2py] membership form with default input values

2013-08-06 Thread sasogeek
i created a membership form using form = crud.create(db.auth_membership) this gives me a form with two select fields. how do i create the form to have for instance the 3rd option automatically selected? -- --- You received this message because you are subscribed to the Google Groups "web2py-

[web2py] How to make a search form

2013-08-06 Thread sasogeek
making a search form using crud is quite simple with the crud.search(db.table) function. but that returns a search field for all the fields in the table. how do i make one search field (a 'search bar') that searches all the fields using the select option 'contains' or any of the given options w

[web2py] how to make 'upload' only allow images

2013-06-05 Thread sasogeek
in the db.py model, when I create a table and I want users to be able to upload files, how do I make sure that the 'upload' parameter allows only image uploads? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this gro

[web2py] Creating groups

2013-05-24 Thread sasogeek
I want to add something to my web2py website which is kind of a social network thingy however people term those things now-a-days :P anyway. basically i want to allow users to create groups, and be able to join groups. so basically they click a link "create a group" which takes them to a page wh

[web2py] Renaming an application

2013-05-18 Thread sasogeek
I put an application on pythonanywhere.com, but I can't rename my application. Usually if I'd rename an application, I'd manually go to web2py/applications/ and change the app's name there. but this time it's online... is there a way to rename the app from within web2py? -- --- You received

[web2py] Re: How to limit user votes

2013-05-16 Thread sasogeek
h.user.id in item.votes: return str(0) #view {{=content.votesup}} On Wednesday, 15 May 2013 15:22:28 UTC+1, Anthony wrote: > > Actually, as long as you are requiring users to register and log in, you > might as well just associate each vote

[web2py] How to limit user votes

2013-05-15 Thread sasogeek
the book states this "although it is easy to change this behavior if visitors are authenticated, by keeping track of the individual votes in the database and associating them with therequest.env.remote_addr of the voter." at this link http://web2py.com/books/default/chapter/29/11#Voting-and-rat

[web2py] How to send email to users

2013-05-14 Thread sasogeek
How do I send an email to a user when they sign up or perform some action? -- --- 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.

[web2py] Re: how to collect tweets

2013-05-12 Thread sasogeek
rlopen("http://search.twitter.com/search.json?q=%s"; % > TWITTER_HASH).read() > > best regards > > On Sunday, May 12, 2013 7:07:46 PM UTC+7, sasogeek wrote: >> >> I know this may not be the right place to ask this but i need help and >> it's the first pla

[web2py] how to collect tweets

2013-05-12 Thread sasogeek
I know this may not be the right place to ask this but i need help and it's the first place that came to mind. I'm trying to build an app that will display tweets from selected accounts. Problem here is that I don't know the first step and hence can't continue... collecting the tweets. I looked

Re: [web2py] Re: Voting system not working

2013-05-11 Thread sasogeek
It works now, thanks :) On Saturday, 11 May 2013 12:48:39 UTC+1, Niphlod wrote: > > at least you must include web2py.js that includes the javascript function > you're using > > On Saturday, May 11, 2013 1:09:13 AM UTC+2, sasogeek wrote: >> >> nothing hap

[web2py] Publish aid

2013-05-11 Thread sasogeek
When I create an app with web2py, how can I add it to the list of apps created by web2py on the web2py website? do I have to submit it for some form of review or if a submission is required, once i do that, it gets added automatically? secondary question: is web2py suitable for applications that

Re: [web2py] Re: Voting system not working

2013-05-10 Thread sasogeek
tion being > invoked? > What did you already tried? > > Help us help you. > > > > On Fri, May 10, 2013 at 3:46 PM, sasogeek > > wrote: > > I need help. > > > > On Friday, 10 May 2013 16:53:23 UTC+1, sasogeek wrote: > >> > &g

[web2py] Re: Voting system not working

2013-05-10 Thread sasogeek
I need help. On Friday, 10 May 2013 16:53:23 UTC+1, sasogeek wrote: > > Model > db.define_table('content', > Field('username'), > Field('text', 'text'), > Field('file', 'upload'), > Field('u

[web2py] Voting system not working

2013-05-10 Thread sasogeek
Model db.define_table('content', Field('username'), Field('text', 'text'), Field('file', 'upload'), Field('userpicture'), Field('time', 'datetime', update=request.now), Field('userid', readable=False), Field('votesup', 'integer', default=0), Field('votesdown', 'integ

[web2py] How to make a counter

2013-05-07 Thread sasogeek
How do I make a counter? basically i want to make a button that increases a counter number when it is clicked... more like a voting button. anytime it is clicked, the counter goes up by one. and every user can click the vote button only once... How do I achieve that -- --- You received t

[web2py] Re: creating groups

2013-03-02 Thread sasogeek
Help... -- --- 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_o

[web2py] creating groups

2013-03-02 Thread sasogeek
I have an app where people can sign up and have profiles, but I don't know how permissions work, I've tried to read the book but I want a little bit more explanation... What I want to do is allow users to create groups which they can name themselves. So that there's a link or button "create a gr

[web2py] Re: how to get an excerpt from a link

2013-02-03 Thread sasogeek
p > > On Sunday, 3 February 2013 18:54:25 UTC-6, sasogeek wrote: >> >> Missing BeautifulSoup >> On Monday, 4 February 2013 00:02:17 UTC, Massimo Di Pierro wrote: >>> >>> {{extend 'layout.html'}} >>> >>> {{htm

[web2py] Re: how to get an excerpt from a link

2013-02-03 Thread sasogeek
form gluon.contrib.autolinks import expand_html}} > {{=XML(expand_html(your_html),cache.ram('mycachekey',lambda:dict(),3600)}} > > > > On Sunday, 3 February 2013 17:40:59 UTC-6, sasogeek wrote: >> >> Can i have an example of the full code... like replac

[web2py] Re: how to get an excerpt from a link

2013-02-03 Thread sasogeek
3600)}} > > will do what you ask. Will expand all links not already tagged using the > oembed protocol. > > > On Saturday, 2 February 2013 18:33:42 UTC-6, sasogeek wrote: >> >> Not sure if I understand your question but I guess I'll say html cos >> that&

[web2py] Team search

2013-02-03 Thread sasogeek
I'm in search of a team to help me build an app, one that can potentially compete with Facebook Twitter and Google, and possibly even Youtube depending on how people use it. I don't know where to start from to search for people familiar with web2py to help me so I was thinking maybe the google

[web2py] Re: how to get an excerpt from a link

2013-02-02 Thread sasogeek
Not sure if I understand your questions but I guess I'll say html cos that's what I'm familiar with... :| On Saturday, 2 February 2013 20:44:25 UTC, Massimo Di Pierro wrote: > > It depends. In which format is the input? markmin, html? > > On Friday, 1 February 2013 22:

[web2py] how to get an excerpt from a link

2013-02-01 Thread sasogeek
I want to do something similar to how facebook reatcs to links... let's say a user makes a post with a link in it (the post is not necessarily just the link) i want to be able to grab the link from the post, make it clickable, as well as a little excerpt from the contents in the page that link is

[web2py] Re: how to support video in an app

2013-02-01 Thread sasogeek
gt; > and this will keep the expended links cached for 3600 seconds in the > dict() The dict will be persistant in ram. > > > > On Friday, 1 February 2013 17:25:04 UTC-6, sasogeek wrote: >> >> where do I put the import statement? >> >> On Friday, 18 January 2

[web2py] Re: how to support video in an app

2013-02-01 Thread sasogeek
where do I put the import statement? On Friday, 18 January 2013 16:02:27 UTC, Massimo Di Pierro wrote: > > from gluon.contrib.autolinks import expand_one > > {{=expand_one('http://www.youtube.com/watch?v=7yvt2Pt6LRA')}} > > On Friday, 18 January 2013 04:58:20 UTC-6,

[web2py] How to put both login and register forms on one page...

2013-01-23 Thread sasogeek
how do I put the login and register forms on one page... so that a user is logged in if they click the login button (if they've entered correct email and password) and are signed up if they click the register button with form data for a new account? --

[web2py] How to disable deleting profile pictures...

2013-01-22 Thread sasogeek
#model db.define_table( auth.settings.table_user_name, Field('profile_picture', 'upload',)) #controller def user(): form=auth() return dict(form=form) #view {{=form}} How do I disable the delete feature? it appears like so on the page... Profile Picture [uploaded image] [file|

[web2py] How to disable deleting profile pictures...

2013-01-22 Thread sasogeek
#model db.define_table( auth.settings.table_user_name, Field('profile_picture', 'upload',)) #controller def user(): form=auth() return dict(form=form) #view {{=form}} How do I disable the delete feature? it appears like so on the page... Profile Picture [uploaded image] [file|

[web2py] How to automatically send emails to users if they perform an action like sign up...

2013-01-21 Thread sasogeek
I want to know how to send emails to users automatically based on their actions... specifically things like an email verification (for validation), notifications for updates and similar actions... --

[web2py] how to support video in an app

2013-01-18 Thread sasogeek
at the moment, i can let users upload pictures and use the img tag to allow the image to be displayed on a page, when users upload videos, how do i allow the videos to display and play on the page... and if users submit a youtube link, how do i grab the embed code to display the video on the pag

[web2py] how to make a page auto scroll to previous viewing point after refresh...

2013-01-17 Thread sasogeek
if i scroll down a page, and click some link that redirects back to the page, how do i make the page auto scroll down to the same place it was before i clicked the link? --

Re: [web2py] how to create a counter button...

2013-01-17 Thread sasogeek
I did read the book, but only the chapters I needed information from to get my app started :) thanks anyway please look up my app here though if you'd be interested in using it http://newupp.tk what it's about is briefed here https://sasogeek.pythonanywhere.com/newup/default/about (temporary ur

Re: [web2py] how to create a counter button...

2013-01-17 Thread sasogeek
what is an ajax callback and how do i use it? what is it for? On Thursday, 17 January 2013 03:16:38 UTC, rochacbruno wrote: > > models/foo.py > > # the thing table > db.define_table("thing", Field("name")) > > # you may want to store likes on another table so you never allow a user > to like the

[web2py] how to create a counter button...

2013-01-16 Thread sasogeek
I want to create a "like" button... sort of, so that when users click that button on some item, the "likes" field of that item in a table is updated... how do i achieve that? --

[web2py] how to give forms a class

2013-01-11 Thread sasogeek
if i have this in normal html coding... ... how do I make the same effect if i have #controller ... form = auth() #view ... {{form.custom.begin}} ... {{form.custom.end}} I know that to give a form descendant element, like input for example, a class, you can do form = auth() email = for

Re: [web2py] External css

2013-01-11 Thread sasogeek
Thank you! On Friday, 11 January 2013 19:30:11 UTC, rochacbruno wrote: > > put in > > web2py/applications/YOURAPP/static/css/yourcssfile.css > > refer with > > ../> > --

[web2py] External css

2013-01-11 Thread sasogeek
If I have an external css file, where do I put it, and how do i refer to it in my views documents? --

  1   2   >