[web2py] Re: displaying errors for list:string types

2012-07-13 Thread joe
Just a note, this seems to fail in other situations as well My code: def add_composition(): form = SQLFORM.factory( Field('dog_id', requires = IS_EMPTY_OR(IS_IN_DB(db, db.raw_material))), Field('cat_id', requires = IS_EMPTY_OR(IS_IN_DB(db, db.run_as_rm))), Field('numb

[web2py] Re: displaying errors for list:string types

2012-07-13 Thread joe
ct(URL('index')) > return dict(form=form) > > works for me (i.e. error is shown if dog_id AND cat_id are selected, and > if there is no selection at all). > PS: works the IS_IN_DB version AND the IS_IN_SET version > > On Friday, July 13, 2012 4:31:09 PM UTC+2, joe

[web2py] Re: Foreign Key fields as null?

2012-07-20 Thread joe
That hasn't worked for me. When I try, I get the error: 'name' It points to the smartgrid I made, with this code: grid = SQLFORM<http://127.0.0.1:8000/examples/global/vars/SQLFORM> .smartgrid(db.dog) Thanks! -Joe Peacock On Tuesday, July 17, 2012 6:22:53 PM UTC-5, A

[web2py] Re: Foreign Key fields as null?

2012-07-23 Thread joe
present=lambda id, row: db.person(id).name if id else 'Nobody owns >> this dog' >> >> Anthony >> >> On Friday, July 20, 2012 3:47:33 PM UTC-4, joe wrote: >>> >>> That hasn't worked for me. When I try, I get the error:>> 'except

[web2py] Exporting foreign keys as represented value

2012-07-24 Thread joe
Hello I am working with xlwt and trying to export a table of mine into a .xls file. This table contains some foreign keys, and they are being exported as the id of the other table rathan than the 'name' field, which is what I want to display. I define the foreign key fields in the table like

[web2py] Re: Exporting foreign keys as represented value

2012-07-24 Thread joe
has to be a simpler way. Thanks! -Joe Peacock On Tuesday, July 24, 2012 9:36:22 AM UTC-5, Anthony wrote: > > How are you exporting the data? The export_to_csv_file() method, for > example, takes a "represent" argument -- if set to True, it will use each > field'

[web2py] email question, and mysterious variable behavior

2012-07-25 Thread joe
Hello Two problems. First, I have no experience whatsoever with the mail system, but I need to use it for a request/notification system. (when the status of a run changes to what a user wanted it to change to, the user gets an email). The email is not being sent. I set up email like this:

[web2py] Re: email question, and mysterious variable behavior

2012-07-25 Thread joe
Thanks, the variable thing works now. Also, if the server is 'logging', will the email be sent? Sorry, I have never used this before. Thanks for the help -Joe peacock On Wednesday, July 25, 2012 2:42:42 PM UTC-5, Niphlod wrote: > > mail.settings.server needs to be ('l

[web2py] Can I ignore ssl with apache for windows?

2012-08-01 Thread joe
Hello This is my first time doing this, and* *I am not at all sure about what I am doing. I am using a dedicated windows server, the my application is going to be running on my company's secure intranet. When I have to work with the database's code, I'll be doing so by remotely connecting to

[web2py] Web2py service won't start on Windows

2012-08-03 Thread joe
Hello I am running apache on a dedicated windows server (2008). As of this morning, it was running successfully as a process. But it needs to be a service, and that is causing me a 404 error. Basically, apache runs just fine as a service, but when I install and start web2py as a service, it

[web2py] Re: Web2py service won't start on Windows

2012-08-06 Thread joe
ol web2py. I do not want to have rocket involved. How do I prevent rocket from starting? Thanks Joe On Friday, August 3, 2012 4:53:43 PM UTC-5, LightDot wrote: > > My guess is that you have Apache and Rocket (web2py's internal web server) > both claiming port 443 at the same time

[web2py] Re: Web2py service won't start on Windows

2012-08-06 Thread joe
Hello Just a note: Even with the error documented above, the service (and apache) still runs. It doesn't seem to be an issue. -Joe On Monday, August 6, 2012 9:45:51 AM UTC-5, joe wrote: > > Hi Ales, > thanks for the suggestion. > > I ran pythonservice.exe with the debug o

[web2py] Hiding items in foreign key dropdown menus?

2012-08-21 Thread joe
;%(name)s')), represent=lambda id, row: db.fruits(id).name if id else '')) --- In a SQLFORM generated from the grocery table, how can I only show fruits that are active? Thanks! -Joe Peacock --

[web2py] import_from_csv_file troubles

2012-06-20 Thread joe
I want to import from a csv file, but I want to use the imported data in only one of my database tables, not all of them, which is how I have seen the examples online. Here is my code, which does not work: Model --- db.define_table( 'upload', Field('name'), Field('e

Re: [web2py] import_from_csv_file troubles

2012-06-20 Thread joe
The project I will be working on requires all users to import from spreadsheets, so thats not really possible. On Wednesday, June 20, 2012 9:49:57 AM UTC-5, Richard wrote: > > Why don't use the appadmin export and import ? > > Richard > > On Wed, Jun 20, 2012 at 9:55 AM,

[web2py] Making fields optional

2012-07-03 Thread joe
I have a table called dogs, and a table called dog food. In the dogs table, the field food is a foreign key referencing the dog food table. Is there any way to make the field in dogs optional? (I have already tried setting default = none, and required = false, both failed). Thanks for your

[web2py] Key Error when try to access records in DB tables

2016-06-14 Thread Joe
do, I get a . The form in the controller: form = SQLFORM(db.table_name) This never happened before, so I have no idea what the problem is. Can anyone help me with this? Thanks very much. Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/w

Re: [web2py] Key Error when try to access records in DB tables

2016-06-15 Thread Joe
27;date_made', 'datetime', default = request.now, writable=False, readable=False, requires = IS_DATE(format=('%d-%m-%Y' To be more clear, in the database administration, in db.table_name, in column db.table_name.id, when I click to select a row by ID I get this e

Re: [web2py] Key Error when try to access records in DB tables

2016-06-15 Thread Joe
Hello Anthony, Thanks very much for your reply. I posted more info including the traceback in my reply to Richard. Please kindly take a look. Thanks again. Cheers, Joe On Thursday, June 16, 2016 at 3:36:31 AM UTC+8, Anthony wrote: > > And full traceback. > > On Wednesday, June 1

Re: [web2py] Key Error when try to access records in DB tables

2016-06-15 Thread Joe
EMPTY(),* IS_NOT_IN_DB(db, 'table_name')]*) I just used: requires=IS_NOT_EMPTY()) I don't think that could cause this error... Cheers, Joe On Thursday, June 16, 2016 at 7:26:03 AM UTC+8, Dave S wrote: > > > On Wednesday, June 15, 2016 at 3:41:21 PM UTC-7, Joe wrote: >&

[web2py] What is the simplest way to password protect a video?

2017-01-02 Thread Joe
ke to password protect the video, not the page. Is there a way to achieve this? Thanks very much, Cheers, Joe -- 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] Re: What is the simplest way to password protect a video?

2017-01-06 Thread Joe
tally-signed-urls > > Anthony > > On Tuesday, January 3, 2017 at 12:12:01 AM UTC-5, Joe wrote: >> >> What I would like to do is to send a user a link to a page where there is >> a video. When the user clicks to play the video, he will have to submit a >> password

[web2py] Self-hosted web analytics solutions for Web2py

2017-01-06 Thread Joe
. Cheers, Joe -- 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-

Re: [web2py] Self-hosted web analytics solutions for Web2py

2017-01-08 Thread Joe
Thanks for the link Richard, I just copied everything and tried it but I am getting this error: OperationalError: no such table: usage_statistics I think I am missing a step. Can you please advise. Thanks. Cheers, Joe On Friday, January 6, 2017 at 11:12:36 PM UTC+8, Richard wrote

Re: [web2py] Self-hosted web analytics solutions for Web2py

2017-01-08 Thread Joe
> https://groups.google.com/d/msg/web2py/659_7_hDiks/947KRwtQDssJ > > good luck > > Richard > > > > On Fri, Jan 6, 2017 at 8:12 AM, Joe > > wrote: > >> I am interested in using a self-hosted web analytics solutions on >> Pythonanywhere for my Web2py apps

[web2py] Connecting new table to mysql db on Pythonanywhere

2017-01-08 Thread Joe
yaccount$dbname.tablename' doesn't exist") I am probably missing something obvious. Can anyone advise me on this please? Thanks. Cheers, Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - http

Re: [web2py] Self-hosted web analytics solutions for Web2py

2017-01-10 Thread Joe
he table... For some reason the web2py-slice > site does block in fortigate so, I am not sure of the code... I guess there > is migrate set to False or something or you set migrations to False in your > connection string. > > Richard > > On Sun, Jan 8, 2017 at 8:21 AM, Joe &

Re: [web2py] Self-hosted web analytics solutions for Web2py

2017-01-14 Thread Joe
me know your thoughts. Thanks. Cheers, Joe On Thursday, January 12, 2017 at 2:18:20 AM UTC+8, Richard wrote: > > I think you can have it with : response.session_id > > So you will have to add a column to the model and set > default=response.session_id... > > Richard > &

[web2py] Which file to upload an analytics platform?

2017-01-26 Thread Joe
ike to get some advise before I do that. Thanks. Cheers, Joe -- 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 subs

Re: [web2py] Which file to upload an analytics platform?

2017-01-26 Thread Joe
. They say, the web2py forum should have the answer. There must be a way to upload and install an analytics software in a web2py app on the Pythonanywhere server. Not sure what to do next. Cheers, Joe On Thursday, January 26, 2017 at 11:28:17 PM UTC+8, Richard wrote: > > Hello Joe, >

Re: [web2py] Which file to upload an analytics platform?

2017-01-26 Thread Joe
Thanks Donald, Yeah, that's what I thought. Cheers, Joe On Friday, January 27, 2017 at 8:13:41 AM UTC+8, Donald McClymont wrote: > > As far as I can see pythonanywhere still doesn't provide php and piwik has > this as required. So I think that can be asked back to pyt

[web2py] Re: Installing app on Pythonanywhere

2015-12-11 Thread Joe
Hi Lionel, as I mentioned, I installed a new app and used the code you sent me for this new app so I didn't need to reload the webapp as I installed it with your code already. It didn't work. Does this code work for you? Is your URL with Pythonanywhere without the /init/default/ ? I just chec

[web2py] Re: Sitemap Question

2015-12-13 Thread Joe
Hi Gael, That's great! Thanks very much. I wonder how I can then create a URL like http://www.mydomain.com/sitemap.txt instead of http://www.mydomain.com/init/default/sitemap.txt On Tuesday, October 20, 2015 at 5:30:03 PM UTC+8, Gael Princivalle wrote: > > Hello Joe. &g

[web2py] Re: Sitemap Question

2015-12-14 Thread Joe
ink it in webmaster tools. I will do that. Thanks again. <http://www.mydomain.com/sitemap.txt> On Monday, December 14, 2015 at 4:51:15 PM UTC+8, Gael Princivalle wrote: > Hi Joe. > > I think you can resolve it by a pattern-based system routes.py > configuration. > >

[web2py] Changing navbar color

2015-12-16 Thread Joe
er rules" section. I have tried just about everything I could think of in web2py_bootstrap3.css but I didn't succeed. Obviously, I am missing something. Any help would be appreciated. Thanks. Cheers, Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] Place different response.meta.description on each page

2015-12-29 Thread Joe
Hello, By default meta tags are in menu.py response.meta.author = '' response.meta.description = '' response.meta.keywords = '' response.meta.generator = '' What is the best way to place a unique meta description on each page of the website? Than

[web2py] Re: Place different response.meta.description on each page

2015-12-30 Thread Joe
roller that generates the page > > > On Wednesday, December 30, 2015 at 6:21:40 AM UTC+1, Joe wrote: >> >> Hello, >> >> By default meta tags are in menu.py >> >> response.meta.author = '' >> response.meta.description = '' >

[web2py] SQLFORM security question

2016-01-03 Thread Joe
When I create a form do I need to do anything other than just have this line in the controller: form = SQLFORM(db.example).process() and then {{=form}} in the view? As far as security, this is enough just like that, right? The reason I am asking because I just looked through the records in the d

[web2py] Re: SQLFORM security question

2016-01-04 Thread Joe
html code in it in the database table records. It shouldn't have processed it because of the special characters? I am probably misunderstanding you. Please kindly let me know. Thanks again. Cheers, Joe On Monday, January 4, 2016 at 5:38:41 PM UTC+8, Niphlod wrote: > > any SQLF

[web2py] Re: SQLFORM security question

2016-01-04 Thread Joe
M is CSRF protected. > If you are sure that that call got a record into the db, something is > really wrong with your application as web2py doesn't allow it out of the > box. > > On Monday, January 4, 2016 at 11:04:49 AM UTC+1, Joe wrote: >> >> Thanks very much Niphl

[web2py] Re: SQLFORM security question

2016-01-04 Thread Joe
gerous about that text having been > submitted and saved. However, you have to be careful what you then do with > any user-submitted data. Do not write it back out to a web page without > escaping or at least sanitizing it. > > Anthony > > On Monday, January 4, 2016 at 7:29:

[web2py] Re: SQLFORM security question

2016-01-06 Thread Joe
> vulnerable to XML attacks. > > On Monday, 4 January 2016 19:40:10 UTC-6, Joe wrote: >> >> Thanks very much Anthony, I appreciate the detailed explanation. This is >> what my understanding was as well, but I wasn't 100% sure. In my case, the >> input was user cont

[web2py] Form submit scrolls to top of the page when error

2016-02-04 Thread Joe
ed if there is an error? I am using a template so I am not extending the Web2py layout.html. I would appreciate some advise. Thanks very much. Cheers, Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] response.flash in custom view

2016-02-04 Thread Joe
If I am not using {{extend 'layout.html'}} how can I make the response.flash working in my template? 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) -

[web2py] Re: response.flash in custom view

2016-02-05 Thread Joe
> in layout.html > {{=response.flash or ''}} div> > > > 5 Şubat 2016 Cuma 09:57:25 UTC+2 tarihinde Joe yazdı: >> >> If I am not using {{extend 'layout.html'}} how can I make the >> response.flash working in my template? >> Thanks. >> > -- Res

[web2py] Re: Form submit scrolls to top of the page when error

2016-02-13 Thread Joe
Thanks Anthony, Yes, I was originally considering adding a message at the top of the page, I just thought perhaps there might be an other way. In any case, that's what I did, added a message at the top and that's fine. Thanks again for your kind reply. Cheers, Joe On Saturday, Februa

[web2py] All HTTP requests redirected to HTTPS

2016-02-24 Thread Joe
I just reloaded my app on Pythonanywhere and after reloading, my site is forced to https for some reason. All HTTP requests are redirected to HTTPS. I didn't uncomment the #request.requires_https() Anyone had a similar issue? What is the best way to resolve this? I asked Python anywhere, they sa

[web2py] Importing CSV file

2016-02-26 Thread Joe
=FORM(INPUT(_type='file',_name='csvfile'),INPUT(_type='hidden',_value='animation',_name='table'),INPUT(_type='submit',_value='Upload'))}} The CSV file has the same headers as the table names. The CSV is imported, the length o

[web2py] Re: All HTTP requests redirected to HTTPS

2016-02-26 Thread Joe
uires_https() anywhere it tells to > redirect the request over to https ... > sure you "didn't uncomment it" ? > > On Wednesday, February 24, 2016 at 3:08:08 PM UTC+1, Joe wrote: >> >> I just reloaded my app on Pythonanywhere and after reloading, my site is

[web2py] Re: Importing CSV file

2016-02-26 Thread Joe
ormat. On Friday, February 26, 2016 at 8:56:07 PM UTC+8, Anthony wrote: > > Maybe manually enter a few records, export to CSV, and inspect the > exported file to make sure your imported file has everything in the proper > format. > > Anthony > > On Friday, February 26,

[web2py] My session.counter is not counting

2016-02-26 Thread Joe
I am trying to use session.counter to count clicks on images on a page. My problem is that my session.counter is not counting... I am doing something wrong, not sure exactly what. I am pretty sure the issue is the* if image.id == 1* I'd appreciate some help with this. *Controller:* def index():

Re: [web2py] My session.counter is not counting

2016-02-26 Thread Joe
image.id *1*, image.id *2* and image.id *3* separately, so I can compare them. If you could guide me in the right direction so I can have a better understanding and solve this problem or if you could correct my code, I would really appreciate it. Thanks again. Cheers, Joe On Saturday, February 27

Re: [web2py] My session.counter is not counting

2016-02-27 Thread Joe
or dislikes. Thank you so much for helping me with this. I appreciate your answer. *Your solution works perfectly*. My problem is solved now and I learned something about session variables. Thanks again. Cheers, Joe On Saturday, February 27, 2016 at 7:20:25 PM UTC+8, Kiran Subbaraman wrote

[web2py] Tracking user original referral URL

2016-04-08 Thread Joe
What is the best way to track HTTP_REFERER URL and store them in a session? Then, if the users submits the form I would like to save the HTTP_REFERER URL in the db. I would appreciate some guidance with this. Thanks very much. Cheers, Joe -- Resources: - http://web2py.com - http

[web2py] Form stopped working...

2018-02-20 Thread Joe
rom uppercase to lowercase and the form is no longer processing anything. I changed it back, reloaded the app I tried everything but it's not processing the Form. I would appreciate some help with this. Thanks. Cheers, Joe -- Resources: - http://web2py.com - http://web2py.com/book (Docume

[web2py] Re: Form stopped working...

2018-02-21 Thread Joe
Thanks Leonel, what is the best way to fix this problem? I am on Pythonanywhere, I am not sure about what I should do at this point. On Wednesday, February 21, 2018 at 11:31:46 PM UTC+8, Leonel Câmara wrote: > > From the point of view of web2py if you had migrations enabled what > happened was t

[web2py] CSS issue with embedded form

2014-08-14 Thread Joe
I am just learning web2py and I love it!!! I am experimenting with it so I can learn it. THE QUESTION: I use my own HTML and CSS. I embedded a form in the HTML like so" {{=form}} The form is displayed fine and works perfectly, however, it just floath left no matter what I do in the page. I pla

[web2py] Re: CSS issue with embedded form

2014-08-14 Thread Joe
, Joe wrote: > > I am just learning web2py and I love it!!! > > I am experimenting with it so I can learn it. > > THE QUESTION: I use my own HTML and CSS. I embedded a form in the HTML > like so" {{=form}} > > The form is displayed fine and works perfectly, however,

[web2py] gluon folder not in my web2py directory

2014-08-20 Thread Joe
I asked this question before but somehow I don't see my question, maybe I didn't actually post it. I don't seem to have the gluon folder in my web2py folder. All the other folders are there except the gluon folder. However, I have a zip file in the web2py folder named "library". I never opened

[web2py] I don't have a gluon forder in my web2py folder

2014-08-20 Thread Joe
I just noticed that I don't have a gluon folder in the web2py folder. Everything seems to work fine, but as I just watched the tutorial video going through each folder, I realized that I don't actually have a gluon folder. How is this possible? -- Resources: - http://web2py.com - http://web2p

[web2py] Re: I don't have a gluon forder in my web2py folder

2014-08-21 Thread Joe
this point. Please kindly advise, I appreciate the help very much! (I apologize for posting this same question 3 times, I thought my post wasn't going through. At first I didn't realize that new posts are held for a while) On Monday, August 18, 2014 6:24:18 PM UTC+8, Joe wrote:

[web2py] Re: I don't have a gluon forder in my web2py folder

2014-08-22 Thread Joe
> yu're using the binary. not the source code > > On Thursday, August 21, 2014 4:11:34 PM UTC+2, Joe wrote: >> >> I am using windows and when I downloaded web2py I unzipped it and I have >> been using it, it works fine, however, I noticed that between the extra

[web2py] mobile and tablet version responisive issues

2014-10-04 Thread Joe
I have 3 issues, all related to the mobile and tablet version of the application: 1. I have placed this: *@media only screen and (min-width: 150px) and (max-width: 1024px)* in the web2py.css file and my app was perfectly responsive offline as I was developing. When I made my browser smaller, i

[web2py] mobile-menu nav is not is not working up on tablet

2014-10-07 Thread Joe
I am having a great time using web2py. I am grateful to all of you who created and contributed to this amazing framework. I just created my first app, I am learning as fast as I can! I hope someone can help me with this issue about the mobile navbar. The mobile-menu nav is not appearing in hori

[web2py] Re: mobile and tablet version responisive issues

2014-10-07 Thread Joe
Hi Leonel, thanks very much for your reply! I appreciate it. 1. I removed all my added CSS from the web2py.css, just kept the original, default web2py CSS and the horizontal view on the 7 inch Samsung is still the same, In any case, I have to work on the CSS and try to fix it, I will work it ou

[web2py] Simple CSS for hover image to enlarge

2014-10-13 Thread Joe
I have a very simple css (below) to enlarge an image when hover over but it doesn't work when I try to use it with web2py view like this: src="{{=URL('static','images/pic1.jpg')}}. Is there a way to make this work somehow or the only way to do this in web2py is by using java script?

[web2py] Shopping cart concept without the payment

2014-10-16 Thread Joe
This is what I am trying to do: I want the user to be able to select images, using a select button under each image. My plan to achieve this is: 1. define a table for all the images and define an other table for the images the user will select. 2. create a function with an SQLFORM to process

[web2py] Re: Shopping cart concept without the payment

2014-10-22 Thread Joe
. This is where I am stuck: def index(): form = SQLFORM(db.images).process() return dict(form=form) def pictures(): form = SQLFORM(db.chosen).process() return dict(form=form) I'd appreciate any help, thanks again. On Saturday, October 18, 2014 2:01:44 A

[web2py] Re: Shopping cart concept without the payment

2014-10-25 Thread Joe
so I can see in the db.images that they are "True" therefore selected. images.idimages.picture_nameimages.selected_pictures5pic5None4pic4None3pic3 None2pic2None1pic1None On Monday, October 20, 2014 9:31:19 AM UTC+8, Joe wrote: > > Hi Dave, > > Thanks so mu

[web2py] pagination issue redirecting to the current page

2014-11-17 Thread Joe
I am working on an app where the user can select items by clicking on a button for each item on the index page. It works fine, except after each item selected the user has to be redirected to index and ends up on the top of the first page at item 1. Then the user has to go back each time and try

[web2py] Re: pagination issue redirecting to the current page

2014-11-19 Thread Joe
Thanks Cliff, I've been trying to do that but I didn't succeed. I would appreciate if you could send an example on how to put the current page info in the request.args dictionary. On Tuesday, November 18, 2014 12:37:09 PM UTC+8, Cliff Kachinske wrote: > > Put information about the current page i

[web2py] Re: pagination issue redirecting to the current page

2014-11-21 Thread Joe
Massimo Di Pierro wrote: > > URL('index',args=(2)) will give you page #2. > > > On Monday, 17 November 2014 22:59:16 UTC-6, Joe wrote: >> >> Thanks Cliff, I've been trying to do that but I didn't succeed. I would >> appreciate if you could send an e

[web2py] session uuid

2015-01-01 Thread Joe
What I am trying to do is send the user to a "product" page where the URL will be a unique URL which can not be used again to access that page after that session. This is what I did, but it's not working as I can use the same URL from an other browser and I can still get to the "product" page.

Re: [web2py] session uuid

2015-01-02 Thread Joe
1:00 Michele Comitini > >: >> >>> def product(): >>> if session.uuid != request.args(0): >>>raise HTTP(404) >>> >>> return dict() >>> >>> >>> >>> >>> 2014-12-30 4:46 GMT+01:00 Joe >: >

[web2py] Re: pagination issue redirecting to the current page

2015-01-03 Thread Joe
AX for instance by using > {{=A('Selected', _id = i.id, _onclick="jQuery.get(" +URL('select', args=[ > i.id]) ... > and use jQuery itself to manipulate the css class of the button itself > > > > > Il giorno giovedì 20 novembre 2014 04:59:11

Re: [web2py] Re: pagination issue redirecting to the current page

2015-01-06 Thread Joe
;s working! The redirect looks like this now: redirect(URL('index', args=[request.vars.page])) So it's working! Thanks again very much! I really appreciate it. On Monday, January 5, 2015 6:37:54 AM UTC+8, Michele Comitini wrote: > > Joe, > > If you stay on page 1,

[web2py] How to get rid if the /init/default/ in the URL?

2017-09-14 Thread Joe
I've been trying to do this for so long, but with *pythonanywhere* hosting, it doesn't seem to be possible to get rid of the *init/default/* part of the URL. I think, this nested sub-directories structure is not optimal for SEO and also makes it difficult to place the *robot,txt* and *sitmap.xm

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-09-16 Thread Joe
BASE = dict(default_application='myapp'),) I must be missing something. Joe On Friday, September 15, 2017 at 9:45:19 PM UTC+8, Anthony wrote: > > See > http://web2py.com/books/default/chapter/29/04/the-core#Parameter-based-system. > > In routes.py, something like:

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-09-17 Thread Joe
Yes, I reloaded the app. Nothing happens, it doesn't change the URL. I tried several different ways to change the routes.py. In the current situation in the *web2py* folder I have this in the* routes.py* file: routers = dict( BASE = dict(default_application='init'), ) Then, in the *web2py/

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-09-18 Thread Joe
t controller if you want /default/index to be > gone when there are any request.args. > > How are your URLs being generated? What happens if you just go to > http://yourdomain.com? > > Anthony > > On Sunday, September 17, 2017 at 9:24:31 AM UTC-4, Joe wrote: >> &

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-13 Thread Joe
'index', 'user'] > ) > ) > > Also, note that as long as you are going to use the rewrite system as > above, there is no particular reason to name your app "init". The only > reason to use "init" is if you are not using the rewrite sys

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-13 Thread Joe
er the URL will still have to be *mysite.com/init/static/robots.txt* to reach it- this is the issue I am trying to solve - I am trying have *mysite.com/robots.txt* On Saturday, October 14, 2017 at 2:35:11 AM UTC+8, Dave S wrote: > > > > On Friday, October 13, 2017 at 2:12:13 AM UTC-7, J

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-23 Thread Joe
Web* tab to *Reload www.myapp.com*. And, nothing changed. I would love to resolve this, and find out what's wrong. Thanks again for all your help. Cheers, Joe On Sunday, October 15, 2017 at 10:07:51 PM UTC+8, Anthony wrote: > > On Friday, October 13, 2017 at 7:22:42 PM UTC-4

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-24 Thread Joe
account. I mean setting up everything again. I hope not. Please let me know your thoughts. Thanks again. Cheers, Joe On Tuesday, October 24, 2017 at 1:27:22 PM UTC+8, Dave S wrote: > > > > On Monday, October 23, 2017 at 8:00:29 PM UTC-7, Joe wrote: >> >> Hi Anthony, &g

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-11-01 Thread Joe
ke on pythonanywhere? Thanks again for all your help with this. Cheers, Joe On Sunday, October 15, 2017 at 10:07:51 PM UTC+8, Anthony wrote: > > On Friday, October 13, 2017 at 7:22:42 PM UTC-4, Joe wrote: >> >> Hi Dave, I have reloaded the apps in web2py if that's what you mean. I

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-11-02 Thread Joe
In pythonanywhere you have to create a folder first before you install the app. So you mean, it should be* /web2py/applications/my_app_directory/init* On Thursday, November 2, 2017 at 10:05:13 AM UTC+8, Anthony wrote: > > In any case, can you advise me on how to fix this problem? My directory >>

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-11-02 Thread Joe
/home/username/web2py/applications So, that's how I end up with this problem: /home/username/web2py/applications/new_directory/applications/init On Thursday, November 2, 2017 at 11:20:41 PM UTC+8, Anthony wrote: > > On Thursday, November 2, 2017 at 5:54:41 AM UTC-4, Joe

[web2py] Something went wrong when I copied the web2py folder

2015-05-10 Thread Joe
I offten create back ups for my web2py folder, copying the entire folder from mu computer to an external hard disc. During the last back up something interesting happened. When I try to manage and edit one of the apps in the back up folder on the external disc, I get this error msg: *Synt

[web2py] Web2py mobile app using Kivy

2015-06-01 Thread Joe
I developed a web app with Web2py. It works great, I thing Web2py is fantastic. I want to create a mobile app from my web app and I am not sure what is the best approach. Does anyone have any experience using Kivy? Does it work with Web2py? Or, is there a alternative solution to Kivy? -- Reso

Re: [web2py] Re: Web2py mobile app using Kivy

2015-06-02 Thread Joe
then QML is > pretty awesome stuff. I used to work for Qt so I would know. :) > I haven't seen Kivy in production code yet, but you can be a first. :) > > > On Mon, Jun 1, 2015 at 9:04 PM eric cuver > wrote: > >> good question I am also interested in the answer >

[web2py] Re: Web2py mobile app using Kivy

2015-06-02 Thread Joe
Thanks Leonel, my app is a pretty complex interactive application to teach kids to read. I am using database, and Python code, all developed in Web2py. It seems that Cordova might not work for this app. On Tuesday, June 2, 2015 at 5:36:23 PM UTC+8, Leonel Câmara wrote: > > I would suggest cordov

[web2py] Re: Web2py mobile app using Kivy

2015-06-02 Thread Joe
day, June 2, 2015 at 7:15:56 AM UTC-4, Joe wrote: >> >> Thanks Leonel, my app is a pretty complex interactive application to >> teach kids to read. I am using database, and Python code, all developed in >> Web2py. It seems that Cordova might not work for this app. >>

[web2py] Upgrading to the latest version

2015-06-21 Thread Joe
I actually don't have an *"upgrade now"* button on my administrative interface. This is the version I have: 2.9.5-stable+timestamp.2014.03.20.22.57.13 Can some one please advise me on what is the best way to upgrade the latest version manually? I found this instruction in the recipes: * Simply

[web2py] Re: Upgrading to the latest version

2015-06-22 Thread Joe
es. To be safe I always remove the old gluon/folder > before copying it. > > On Sunday, 21 June 2015 21:47:47 UTC-5, Joe wrote: >> >> I actually don't have an *"upgrade now"* button on my administrative >> interface. This is the version I have: >>

Re: [web2py] Upgrading to the latest version

2015-06-23 Thread Joe
Thanks very much for this advise. I will keep this in mind, but it sounds like I should download the newest version, as I mentioned in my earlier reply, and have both versions on my PC in two different folders. This way I can use the new version of web2py to develop new apps while I can keep m

[web2py] How to rename my application

2015-07-23 Thread Joe
Is there a simple way to change the name of my application? -- 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 su

[web2py] Re: How to rename my application

2015-07-23 Thread Joe
I thought of just about everything else but changing the folder's name. It's so simple and obvious...but I didn't think of that. Thanks very much Anthony! *There is no such a thing as a stupid question...or is there?* On Friday, July 24, 2015 at 10:16:59 AM UTC+8, Anthony wrote: > > Change the

[web2py] Displaying 0 instead of None in my app

2015-07-24 Thread Joe
I want to display *0* instead of *None* for the session.counter or session.wrong_counter in my app. I have tried about 10 different ways to do this but I am not getting it right for some reason. This is the Controller for the page *score*: def score(): image = db.pic(request.args(0,

[web2py] Re: Displaying 0 instead of None in my app

2015-07-26 Thread Joe
Thanks very much Alex, this works as well, I appreciate it. I ended up changing the code in the View as per Anthony's suggestion like so: {{=0 if session.counter is None else session.counter)}} On Friday, July 24, 2015 at 8:48:51 PM UTC+8, Alex wrote: > > that's because the other session variabl

[web2py] Re: Displaying 0 instead of None in my app

2015-07-26 Thread Joe
Thanks Anthony, I changed the View as per your answer. This was the easiest solution. It works great, I appreciate it. *(you forgot to take out one of the parenthesis at the end but I removed it)* On Friday, July 24, 2015 at 8:51:33 PM UTC+8, Anthony wrote: > > Well, the code checks two conditi

  1   2   3   4   5   6   7   8   9   >