[web2py] Re: Getting only the latest "version" in a query of items with versions.

2016-08-24 Thread Encompass solutions
r On Thursday, August 25, 2016 at 8:36:58 AM UTC+3, Dave S wrote: > > > > On Wednesday, August 24, 2016 at 10:29:09 PM UTC-7, Encompass solutions > wrote: >> >> Does this seem sensible? It seems to work with my initial tests. >> >> latest_versions = db(

[web2py] Re: Getting only the latest "version" in a query of items with versions.

2016-08-24 Thread Encompass solutions
ct_id) & (db.item_version.id > 0) ).select(db.item.ALL, db.item_version.ALL, db.item_version.version_date.max(), groupby=db.item.id) On Thursday, August 25, 2016 at 8:29:09 AM UTC+3, Encompass solutions wrote: > > Does this seem sensible?

[web2py] Re: Getting only the latest "version" in a query of items with versions.

2016-08-24 Thread Encompass solutions
d) the .max() feature, at least what I found, was totally undocumented. We should have an example database as part of the documentation with a collection of examples around it so we can all relate better. :/ On Monday, August 22, 2016 at 10:52:55 AM UTC+3, Encompass solutions wrote: > >

[web2py] Re: Getting only the latest "version" in a query of items with versions.

2016-08-23 Thread Encompass solutions
August 22, 2016 at 10:52:55 AM UTC+3, Encompass solutions wrote: > > Consider the following pseudo model. > > item > ->name = "string" > > version > ->item_id = item.id > ->version_date = "datetime" > > > While I can easily create a

[web2py] Getting only the latest "version" in a query of items with versions.

2016-08-22 Thread Encompass solutions
Consider the following pseudo model. item ->name = "string" version ->item_id = item.id ->version_date = "datetime" While I can easily create a collection of the item with it's versions. all_items = db((db.item.id > 0) & (db.version.item_id == db.item.id)).select(orderby=db.item.name | db.

[web2py] Re: populating the values in a SQLFORM with default data in a field type of list:string

2016-08-04 Thread Encompass solutions
Could someone test something similar to this out? Am I getting this wrong with setting the default values in this field? It feels like a bug in web2py. On Wednesday, August 3, 2016 at 1:20:50 PM UTC+3, Encompass solutions wrote: > > It seems that my SQLFORM.factory won't popul

[web2py] populating the values in a SQLFORM with default data in a field type of list:string

2016-08-03 Thread Encompass solutions
It seems that my SQLFORM.factory won't populate default values. Are you guys getting similar or am I doing this wrong? Here is what I am doing. emails = [] for member in members: emails.append(member.email) form = SQLFORM.factory(Field("members", "list:string", requires=IS_LIST_OF(IS_EM

[web2py] Re: Ho to maintain the sequence serial numbers for table row id's even if we delete any row from table.+

2016-06-23 Thread Encompass solutions
The id field sequences like this so that any referencing items don't get screwed up. You would need to renumber the sequence, that's a bad thing. What is it your wanting to do actually? If you simply query the items they are sorted by id value. On Thursday, June 23, 2016 at 12:22:57 PM UTC+3,

[web2py] Issue with the cheatsheet for web2py

2016-06-23 Thread Encompass solutions
I was using this: http://web2py.com/examples/static/web2py_cheatsheet.pdf And was getting the request.http_host After some research I found it was actually, request.env.http_host Should we update the cheatsheet? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt

[web2py] Re: Using web2py's template parser in an interesting way.

2016-04-06 Thread Encompass solutions
The application has to be in a png format, the application builders are designers that use vector. And the system passes the png to a very simple view that can only handle still images in png or jpg format, maybe one a minute with web2py as the "Application framework". Otherwise, yes, on every

[web2py] Grouping by date in a query...

2016-02-29 Thread Encompass solutions
Not much documentation about this, as far as I can find. I want to count and group by the date without the time or day. That is... https://groups.google.com/forum/#!searchin/web2py/group$20and$20count$20by$20date/web2py/G6xRnfONnSo/bXaG4bhigwIJ But with the date. Obviously .date() doesn't work her

[web2py] Re: block tags replace the content, but also still print where they stand.

2015-12-14 Thread Encompass solutions
and above the except line. On Saturday, December 12, 2015 at 2:31:24 PM UTC+2, Encompass solutions wrote: > > It seems that I have a block in my main layout but when I insert a block > in the included view it print the text where it stands as well as replace > the item in the block

[web2py] block tags replace the content, but also still print where they stand.

2015-12-12 Thread Encompass solutions
It seems that I have a block in my main layout but when I insert a block in the included view it print the text where it stands as well as replace the item in the block. What am I doing wrong, or is this a bug? BR, Jason Brower -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] FEATURE REQUEST: Case Insensitive Field types

2015-12-02 Thread Encompass solutions
I am not sure this exists yet, but it would be nice to take a string field (or anything string like) and make it case insensitive. That way I don't have to worry the j...@example.com is the same as j...@example.com What do you guys think? -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Using web2py's template parser in an interesting way.

2015-10-30 Thread Encompass solutions
I have been trying to understand web2py's builtins for some fun features I am working on. Basically I am trying to make a renderer for svg files and want to convert escaped charactors like quot; back to there actual charactors. This would encable me to create SVG's that can use the templating th

Re: [web2py] Buying a template for the community...

2015-10-11 Thread Encompass solutions
Sure, that probably works just fine too. :) I just think we should start cleaning up that interface and make it more UX friendly than now. BR, Jason Brower On Sunday, October 11, 2015 at 10:34:26 AM UTC+3, AngeloC wrote: > > I Jason, > > 2015-10-11 9:24 GMT+02:00 Jason (spot) Brower >: > > I

[web2py] Re: Static content seems to load with a 404 error... uwsgi nginx

2015-10-05 Thread Encompass solutions
SERVER_SOFTWAREnginx/$nginx_version; } } On Sunday, October 4, 2015 at 1:24:03 PM UTC+3, Encompass solutions wrote: > > I have setup uwsgi and I seem to be very close to having everything > working. > It just seems that my static data is not loaded now. (css, images, so >

[web2py] Re: Static content seems to load with a 404 error... uwsgi nginx

2015-10-04 Thread Encompass solutions
include uwsgi_params; uwsgi_param UWSGI_SCHEME $scheme; uwsgi_param SERVER_SOFTWAREnginx/$nginx_version; } On Sunday, October 4, 2015 at 1:24:03 PM UTC+3, Encompass solutions wrote: > > I have setup uwsgi and I seem to be very close

[web2py] Static content seems to load with a 404 error... uwsgi nginx

2015-10-04 Thread Encompass solutions
I have setup uwsgi and I seem to be very close to having everything working. It just seems that my static data is not loaded now. (css, images, so forth) This is my nginx file with the web2py applicaiton in it. Any ideas into the issue? My web2py installation is located in /var/www/web2py/. # fil

[web2py] Is there a way to user response.render with a string object.

2015-09-08 Thread Encompass solutions
It seems I have to use response.render with a file location. Is it possible to use a string response? Sorry haven't tested but I assume it can't because it's a string to string check. I really I hope to use this in a new template system I am setting up. It will be pulling the templates from t

[web2py] Re: Change in application request.vars when switching from Rocket to Lighttpd+FastCGI

2015-08-14 Thread Encompass solutions
Is there any progress with this issue? I have lighttpd setup and it seems to still have the issue. Take a look at this screenshot to see. It's a real bummer as the NGINX has proven hard to install on centos 6.6. At least for us. :) On Sunday, March 1, 2015 at 10:38:37 AM UTC+2, Niphlod wrote

[web2py] Re: How do I check of the version of pysimplesoap in web2py.

2015-06-28 Thread Encompass solutions
;] = 90210 > > try: > response = > client.GetCityWeatherByZIP(**parameters) > except SoapFault as e: > response = "ERROR {0}: {1}".format(e.faultcode, > e.faultstring) > > > On Thursday, 25 June 2015 06:32

[web2py] Re: How do I check of the version of pysimplesoap in web2py.

2015-06-24 Thread Encompass solutions
Found it. it's in the init.py file in gluon/contrib/pysimplesoap/ It's version 1.11 which is a little behind, but there are some regression as of last year, we should check before bumping up the version. On Wednesday, June 24, 2015 at 9:52:08 AM UTC+3, Encompass solutions wrote

[web2py] Re: Restricting Access to database based on roles at the Database level.

2015-05-14 Thread Encompass solutions
-tenancy> > > or common filters > <http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Common-filters> > > functionality. > > Anthony > > On Thursday, May 14, 2015 at 5:58:20 AM UTC-4, Encompass solutions wrote: >> >> I am bu

[web2py] Trying to post a small improvement to web2py source.

2014-09-12 Thread Encompass solutions
How do I submit a small change I have made the the Web2py source? It's a small improvement. But when I try to git push I get a 403 error. I also don't know much about pull requests, but I think those are involved too. BR, Jason Brower -- Resources: - http://web2py.com - http://web2py.com/book (

Re: [web2py] Sass support example for web2py.

2014-09-07 Thread Encompass solutions
I understand. Gulp might be my ticket here. Let me learn more about it. BR, Jason Brower On Sunday, September 7, 2014 9:30:34 PM UTC+3, Niphlod wrote: > > BTW: there's a reason why they're called PRE-processors. Because they are > meant to "refresh" the dest just when the source is changed, no

[web2py] Sass support example for web2py.

2014-09-07 Thread Encompass solutions
I use templates from wrapbootstrap a lot. 3 times a month even. Sadly however, it's getting harder and harder to use those templates with web2py due to no support be it built-in or not, for SASS, LESS, and others getting much more popular. How can I make it so I code my css in SASS but to the cl

[web2py] Re: Web2py vs ruby on rails for a startup?

2014-08-24 Thread Encompass solutions
I have worked with 10s of python people and there transition to web2py was easy. Ruby itself is hard to find, but python is much more popular. On Sunday, August 10, 2014 8:20:43 PM UTC+3, Massimo Di Pierro wrote: > > In my opinion the server costs are negligible whichever way you go. Most > Ro

[web2py] Re: Web2py vs ruby on rails for a startup?

2014-08-24 Thread Encompass solutions
I think about the easy of handing the server off to others to test and setup. Web2py is much easier. BY FAR. BR, Jason On Sunday, August 10, 2014 9:43:02 AM UTC+3, Suresh Mali wrote: > > > I am trying to zero on web framework for our startup, > requirements > a. Security ( we are working on f

[web2py] Web2py, nginx, installation on Raspberry Pi

2014-08-24 Thread Encompass solutions
Hi, Currently I am getting a 502 Bad Gateway Error when trying to access my web2py server running on Raspberry Pi. I first tried the setup with the script setup-web2py-nginx-ubuntu.sh as it's nearly identical to the instructoins found here. http://web2py.com/books/default/chapter/29/13#Nginx Afte

[web2py] Re: Feature Request: IS_IN_SET with list:string field type

2014-04-11 Thread Encompass solutions
Thanks! On Saturday, March 29, 2014 2:50:42 PM UTC+2, Encompass solutions wrote: > > I would love to have a list set with strings but I am able to define if > they should be of a certain string type. > Does this already exist and I did it wrong, or would this be a good idea &g

[web2py] Re: Password feild type seems to save in plain text for me.

2014-03-26 Thread Encompass solutions
lidator, so > you'll have to set the CRYPT validator explicitly. > > Anthony > > On Tuesday, March 18, 2014 1:04:54 PM UTC-4, Encompass solutions wrote: > >> I am trying to create a model with an encrypted key so it's harder for >> someone to malicio

[web2py] Admin interface doesn't allow me to code very well from an android device.

2014-03-21 Thread Encompass solutions
When I try to view an admin page in my Android desktop it shows the mobile view. I have clicked the "Request desktop site." option and the admin interface is still returned in the mobile view. I don't like this view when I run in on my android desktop at III have a full hd screen. Addi

[web2py] Re: Voting system without users.

2014-03-21 Thread Encompass solutions
. The session way of holdding back votes seem to work for now. We will see if people abuse it. So far, I don't think there is much point in it. BR, Jason Brower On Tuesday, March 4, 2014 9:39:11 AM UTC+2, Encompass solutions wrote: > > I was thinking of a voting system without users, but

[web2py] Re: Password feild type seems to save in plain text for me.

2014-03-21 Thread Encompass solutions
I was using the admin pages to add the value to the database. Interesting to ssee that SQLFORM was not used in the admin panel. BR, Jason On Tuesday, March 18, 2014 7:04:54 PM UTC+2, Encompass solutions wrote: > > I am trying to create a model with an encrypted key so it's

[web2py] Re: Problems with the server stalling out. Setting up debuging.

2014-03-21 Thread Encompass solutions
The issue was fixed. Sorry for not seeing the follow up. I switched to NGIX and everything works perfectly. Haven't seen this issue since. BR, Jason Brower On Sunday, February 2, 2014 8:14:21 PM UTC+2, Encompass solutions wrote: > > It seems that I have an issue I can't resolv

[web2py] Password feild type seems to save in plain text for me.

2014-03-18 Thread Encompass solutions
I am trying to create a model with an encrypted key so it's harder for someone to maliciously screw over my customers. I have the following snippet. Field('public_gram', 'boolean', default=False), Field('tag_name', 'list:string'), Field('deletion_key', 'password') ) You can see the

Re: [web2py] Virtual Fields not working on print.

2014-02-19 Thread Encompass solutions
row)) ) db.melodigram_play.melodigram_id.requires = IS_NOT_EMPTY() db.melodigram_play.when_opened.requires = IS_NOT_EMPTY() --- Basically I just remove everything and returned a text object. This sti

[web2py] Re: Autodelete, uploadseparate: implementing in production.

2014-02-14 Thread Encompass solutions
ve the already uploaded files yourself. > autodete will not delete existing files until the records that point to > them are deleted. > > On Monday, 10 February 2014 22:14:56 UTC-6, Encompass solutions wrote: >> >> I want to add autodelete and uploadseparate in production but I

[web2py] Re: Script timed out before returning headers: wsgihandler.py

2014-02-02 Thread Encompass solutions
Hi there. I am having similar errors, but don't know how to change those settings. Could I get a few more details on how this is done? BR, Jason Brower On Wednesday, November 20, 2013 1:51:14 PM UTC+2, Niphlod wrote: > > raising the timeout isn't gonna solve the issue that some request are > t

[web2py] Re: Problems with the server stalling out. Setting up debuging.

2014-02-02 Thread Encompass solutions
uest.body: [Sun Feb 02 17:44:39 2014] [error] [client 83.145.241.129] File "/home/www-data/web2py/gluon/globals.py", line 252, in body [Sun Feb 02 17:44:39 2014] [error] [client 83.145.241.129] raise HTTP(400, "Bad Request - HTTP body is incomplete") [Sun Feb 02 17:44:39

[web2py] Best practice when making downloads more private.

2013-11-09 Thread Encompass solutions
I need a way to make downloads private/one time for the user. What is the best practice for this? * Should I need a special download script? My guess is yes. * Should I have a special directory and how would I best do that? * Is there a way to create one time downloads without authentication? Some

[web2py] user.user.(data) not updating when I make the change in the database.

2013-02-03 Thread encompass
When I change some data in db.auth_user[auth.user.id].update(bla=bla) I don't get the changes in auth.user.bla. Is this the expected behavior? Kind of a bummer as I would have to quiry the user quite often to make sure things are correct. In my application the users data changes quite a bit. I

Re: [web2py] Coding of the future?

2013-02-03 Thread encompass
I personally use scribes. Bluefish, it's been ages since I have ever used that beast. :) It's just interesting to see people coding online now and that web2py is already kinda there. :) BR, J On Thursday, January 31, 2013 2:26:45 PM UTC+2, Johann Spies wrote: > > > > On 31 January 2013 13:03,

[web2py] Re: Logging in with applications.

2013-02-03 Thread encompass
e user and returns > the user record. > > On Saturday, 19 January 2013 00:31:00 UTC-6, encompass wrote: >> >> The last link was the one I was looking at first. Before this post. But >> """ >> login_bare returns user if the user exists and the pas

[web2py] Re: Logging in with applications.

2013-01-18 Thread encompass
The last link was the one I was looking at first. Before this post. But """ login_bare returns user if the user exists and the password is valid, else it returns False. username is the email if the "auth_user" table does not have a "username" field. """ doesn't sound like I logged in a user.

Re: [web2py] Do we have to have first_name in auth tables?

2013-01-18 Thread encompass
t; different problem, no ? > > @encompass : are you using a custom auth instance ? > > On Tuesday, January 1, 2013 7:55:37 PM UTC+1, Alec Taylor wrote: >> >> Hey Jason, >> >> Reported this same issue a few days ago; I think they're working on it: >> https:

[web2py] Do we have to have first_name in auth tables?

2013-01-01 Thread encompass
I am getting an error when trying to view the database in the admin AttributeError: 'Row' object has no attribute 'first_name' How would I get around this as the database admin is pretty useful. :) BR, Jason Brower --

[web2py] Added Conditional Validation in the Model...

2012-12-29 Thread encompass
I have this in my model. db.define_table('site', Field('location', 'string'), Field('user', db.auth_user, readable=False, writable=False), Field('typos', 'blob', readable=False, writable=False, default=None), Field('status', 'string', readable=False, writable=False, default='pendin

Re: [web2py] Sending and Recieving JSON data...

2012-11-18 Thread encompass
} } And let's assume this is sent data from the phone. How would I build the controller to part this? The example here from the book didn't tell me much. At least that I can see. :/ @service.jsonrpc def getTasks(): todos = db(db.todo).select() return [(t

Re: [web2py] Sending and Recieving JSON data...

2012-11-18 Thread encompass
The application on the mobile devices already exists and works. I need to make many applications that work with the applications for testing and so forth. The application currently sends the JSON data to a webserver so I just want to make web2py the server instead of the "other framework". On

[web2py] Re: How do I handle more than 32768 characters in the database?

2012-11-17 Thread encompass
text On Saturday, November 17, 2012 5:36:32 PM UTC+2, LightDot wrote: > > This is saved in a database field? > > So... which database and which field type? ;) > > Regards, > Ales > > > On Saturday, November 17, 2012 7:30:55 AM UTC+1, encompass wrote: >> >

[web2py] Re: How do I handle more than 32768 characters in the database?

2012-11-17 Thread encompass
They are queued and then sent later. On Saturday, November 17, 2012 3:10:23 PM UTC+2, Niphlod wrote: > > how are you sending the email message ? > > On Saturday, November 17, 2012 7:30:55 AM UTC+1, encompass wrote: >> >> I was including the css I use in my emails a

[web2py] Re: How do I include text from a file in static in my email templates?

2012-11-16 Thread encompass
ad()}} > {{=open(os.path.join(request.folder,'static','css/style.css')).read()}} > > > On Friday, 16 November 2012 13:47:10 UTC-6, encompass wrote: >> >> I want to include the text from static in my email templates. I >> currently have this, but it doesn&#

[web2py] Re: I have a generated pdf file I want to return to the view...

2012-10-23 Thread encompass
_pshysical_file, attachment=True, > filename=whatever.pdf) > if you have a "virtual file" (e.g., StringIO) > response.stream(virtual_file, attachment=True, filename=whatever.pdf) > > On Monday, October 22, 2012 9:33:21 PM UTC+2, encompass wrote: >> >> How do I retu

[web2py] Re: MariaDB

2012-10-05 Thread encompass
Actually it shoudl work just the same. It's just we don't say it is supported. You use the same settings as MySQL. I made sure from Monty himself. He created both MySQL and MariaDB both named after his daughters. :) BR, Jason On Friday, October 5, 2012 8:26:13 PM UTC+3, mikech wrote: > > Ma

[web2py] Re: wysiwyg editor saving ALL in a blob (including pictures)

2012-05-13 Thread encompass
To me, this is bad idea. You miss out on many of the nice things of having the images in a table. For example, you can index and search the images. The database and your server don't have to be hit so hard because those images are on another server so your pages can load faster. Attachment

[web2py] Re: Sending files to a controller and nicedit in the view.

2012-05-10 Thread encompass
The manual uploads didn't look like it would work as it is coming from the local filesystem. My guess is your meaning I should just pull it from request.vars with no form on my side. That just might work. Thanks for the help. On Thursday, May 10, 2012 1:28:46 PM UTC+3, Anthony wrote: > > Is t

[web2py] Re: Escaping objects, and a book error...

2012-05-02 Thread encompass
permitted_tags... bingo that is what I was looking for. :) BR, Jason On Tuesday, May 1, 2012 8:23:36 PM UTC+3, Anthony wrote: > > I am looking how to escape particular items in html and want to know what >> is actually being escaped. Is there a list on this page somewhere to show >> me this? I

[web2py] Escaping objects, and a book error...

2012-05-01 Thread encompass
http://web2py.com/books/default/chapter/29/3?search=escape And search for markdown2 and you get a broken link. With that outtadaway. :) I am looking how to escape particular items in html and want to know what is actually being escaped. Is there a list on this page somewhere to show me this? Is

[web2py] Re: License Question

2012-04-03 Thread encompass
I think it is fun when we can say things like that. :) BR, J On Tuesday, April 3, 2012 9:46:59 PM UTC+3, Anthony wrote: > > Quick question: >> When do I need to have "powered by web2py" on the bottom of my page? >> > > Never. This is not a requirement of the web2py license. If you'd like to > pu

[web2py] Re: Interesting "Stop Writing Classes" talk from PyCon

2012-03-18 Thread encompass
Yeah, I am sure there is a line between refactor, rebuild, and work around. But this talk was good. He made some good points. BR, Jason On Mar 18, 4:13 pm, Alan Etkin wrote: > About "refactor religiously", it's curious, an experienced python > developer stated in PyConAr what I think is the oppo

[web2py] Gargoyle for Web2py would be nice....

2011-10-04 Thread encompass
For large deployments with various settings something like this could come in rather handy. What is your take on it? http://code.disqus.com/code/projects/gargoyle.html

[web2py] Re: suggestion re folders in web2py

2011-09-27 Thread encompass
They pretty much are. All your files should be in the applications folder. But there may be a few exception most you don't have to worry about. At least I haven't worried in the last 2 years or more. :D When you create an application with the internal system you get all the files as scaffolding fo

[web2py] Re: what about web2py 2.0?

2011-09-20 Thread encompass
Yeah, we use haystack in Django here at my work for our search tool of choice. On Sep 20, 1:58 pm, Anthony wrote: > On Tuesday, September 20, 2011 12:27:20 PM UTC-4, Massimo Di Pierro wrote: > > > I promised somebody geospatial features. That will probably come > > before full text search but thi

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-12 Thread encompass
Yup... he just might be. That or he works on the train. SMARTS! I tried programming on my bike, but it's not very functional. :) Congrats to Massimo, he has made a framework that works like a dream. On Sep 11, 9:30 am, GoldenTiger wrote: > In this community there's a rumor that he is a cyborg.

[web2py] Re: PyCon Finland 2011

2011-08-23 Thread encompass
I should go! Didn't even know it was happening! MASSIMO SHOULD GO TOO!! Let's see if I can convince the family budget or my boss. :) On Aug 23, 1:24 am, Kenneth Lundström wrote: > Anyone planing to visit the European Capital of Culture a.k.a. Turku on > 17-18.10 and maybe visiting PyCon Turku at

[web2py] Re: No spaces... now that would be nice...

2011-08-17 Thread encompass
I just wanted to start some discussion about it, as I am programming in Django at my work and ran across the feature. I know 3 or 4 places off hand that could use this feature in our current django project and it makes the templates look a lot cleaner. On Aug 17, 3:04 pm, Ross Peoples wrote: >

[web2py] My search Engine with ÄÖÅ doesn't work, what is my best approach?

2011-08-07 Thread encompass
I have something like this as a search engine parameter: http://interestid.com/search.json/theSearch And that returns the result for the search for "theSearch" Sadly however, I forgot about foreign characters like ÖÄÅ. What is my best solution for doing a search system like this? Best Regards, Jas

[web2py] Re: Generic View is not loading...

2011-08-07 Thread encompass
And just to be a bit precise: def allow_generic(*types): def _(f,types=types) : for t in types: response.generic_patterns.append(f.__name__+'.'+t) return f return _ It was missing a colon.

[web2py] Re: Generic View is not loading...

2011-08-07 Thread encompass
Fancy! Now that is a nice feature. I will be implementing this in many of my sites. BR, J

[web2py] Re: Generic View is not loading...

2011-08-07 Thread encompass
It's too bad we couldn't do it as a decorator or similar. That way we could know which pages have the exceptions directly rather than opening (or searching) for another file with the correct line. On Aug 7, 10:13 am, Massimo Di Pierro wrote: > in models or controllers > > response.generic_patter

[web2py] Fresh Wizard install and plugin wiki not working...

2011-01-25 Thread encompass
I installed the plugin wiki and when I try to access application_name/ plugin_wiki/ and login it tells me access denied. Did I do something wrong?

[web2py] returning from a controller and escaping the html...

2011-01-20 Thread encompass
I have a control function as follows: def return_dis(): return " there " Of course it returns it just fine except that I would like to escape the < > and any other html stuff. Is there something special in web2py for that or should I make my own method for that? I could make a blank page but

[web2py] Error in "Cooperation" in the online book...

2010-12-07 Thread encompass
http://web2py.com/book/default/chapter/04#Cooperation # Applications can call each other's actions locally using exec_environment as discussed above. # Applications can import each other's modules using the syntax: # Applications can import any module in the PYTHONPATH search path, sys.path. Notice

[web2py] WARNING:web2py.cron:WEB2PY CRON Call returned code 2:

2010-12-06 Thread encompass
I have web2py in a directory with spaces in it. It seems it parses the directory location and stops at the space. I can't tell exactly what it says but it is similar to this: can't open file '/home/encompass/Programming/John' : [Errno 2] No such file or directory The directo

[web2py] Can't use external internet in my development environment...

2010-11-18 Thread encompass
I see that the latest web2py pulls from ajax.googleapis.com. This is a bad thing for me as I don't have external internet access. Can we simply include these libraries? BR, Jason Brower

[web2py] Re: A small improvement...

2010-11-17 Thread encompass
hortcuts are > always welcome which is why I like the new Time widget :) > > -D > > On Nov 17, 12:35 pm, encompass wrote: > > > I have to deal with a lot of funky errors in my code and being a > > developer I avoid the mouse as much as I can.  I thought this migh

[web2py] A small improvement...

2010-11-17 Thread encompass
I have to deal with a lot of funky errors in my code and being a developer I avoid the mouse as much as I can. I thought this might come in handy... I change line 40 in web2py/gluon/rewrite.py to the following: p.error_message_ticket = \ '''

[web2py] Re: Auth only shows a few feilds on the profile page...

2010-05-04 Thread encompass
I suppose it was lost in the duscussions going on. I will bump it again. :) On May 4, 4:56 pm, Jason Brower wrote: > I am not using any special view for the profile page... > This is the relevent stuff in my model... > db.define_table('users', >         SQLField('nickname', 'string', length=20),

[web2py:37504] Re: Interesting Application Issues

2009-12-17 Thread encompass
o this using web2py cron task. This > is a complicated issue and I need to know more to be of help. Perhaps > chat could be a solution. Tomorrow? > > Massimo > > On Dec 17, 9:57 pm, encompass wrote: > > > With so many emails on this list I worry it was lost in the acti

[web2py:37499] Re: Interesting Application Issues

2009-12-17 Thread encompass
With so many emails on this list I worry it was lost in the action. Was a clear enough? I just need to run a thread or something inthe background so that I can keep the robot heart ticking while the user decides on an action. BR, Jason Brower On Dec 17, 11:44 am, encompass wrote: > Therobotd

[web2py:37442] Re: Interesting Application Issues

2009-12-17 Thread encompass
on? My advice is merge the two apps into one app > with two controllers (one for you and one for the robot), the use > cache.ram to store information that needs to be passed between them. > > On Dec 17, 12:51 am, encompass wrote: > > > I am creating a robot interface in web2py. &

[web2py:37430] Interesting Application Issues

2009-12-16 Thread encompass
I am creating a robot interface in web2py. I am making great progress as I can send commands and other what not to the robot and make it do it's thang, but I find problems in monitoring signals from the device. The robot sends "heartbeat" requests about ever 5 seconds, if it doesn get a response fr

[web2py:35610] integrating pycrc into my web applicaton...

2009-11-19 Thread encompass
I am needing some extra tools integrated into my environment. I assumed you just put them into the modules folder and they can be pulled normally. But I guess I am doing something wrong. Any ideas? I am trying... from crc_algorithms import Crc and it gives me the error... ImportError: No module

[web2py:32280] Re: anti spam, anti porn strategy?

2009-10-06 Thread encompass
Just as a side note, I wanted to inform you that web2py groups is now on the ban list of my business. Just after I looked at this post with my work computer. I am not blaming you, but I thought it was funny. Regards, Jason On Oct 6, 7:17 am, Richard wrote: > I've used the recaptcha built in to

[web2py:32278] Possible major bug, or my own stupidity...

2009-10-06 Thread encompass
I wish I could show you the code, but it's against company policy. But I have some code that is accessing an sqlite database. I am the only one accessing it right now. But I have some session data. session.equipment (Holds specific data pulled from xml and turned into a dictionary. for example "a1

[web2py:31983] Download a file like object.

2009-09-30 Thread encompass
I am creating a file (pdf actually) that is being generating in memory. I could save it and then grab it, but we all know there has to be a better way. How do I make a file like object downloadable with web2py? Regards, Jason --~--~-~--~~~---~--~~ You received this

[web2py:31780] Re: Ubuntu web2py

2009-09-28 Thread encompass
Not sure if this one should be done unless you know what your doing. ---sudo apt-get dist-upgrade--- If I did it, it would ruin everything I have done. Regards, Jason Brower On Sep 28, 3:44 am, suiato wrote: > i run web2py on ubuntu 9.04. > > try > sudo apt-get install python-tk > > i have  li

[web2py:31779] dynamic or queries...

2009-09-28 Thread encompass
I have this... solution = db(db.solution.id == request.args[0]).select() solution_solves = db((db.solution.id == db.solution_solves.solution) & (db.issue.id == db.solution_solves.issue)) solved_issues = solution_solves(db.solution.id == solution [0].id).select() and I want to make it so that I ca

[web2py:31250] Re: Many 2 Many but want to see a feild other than id....

2009-09-17 Thread encompass
GOT IT. I know it wouldn't be that hard! I don't know what they are called or even if it is actually documented. but on page 171 of the manual I found the line... db.dog.owner.requires = IS_IN_DB(db, 'person.id', '%(name)s') The last part is exactly what I needed to do to my IS_IN_DB feild require

[web2py:31206] Re: Can't get the form to validate...

2009-09-17 Thread encompass
I > did not know how to customize forms so I build my own forms manually. > Before long I realized the code becomes unmaintainable quickly. So, > come back before it is too late, let's do things in a web2pythonic > way, pal. > > Regards, > Iceberg > > On Sep17, 6:0

[web2py:31205] Re: Can't get the form to validate...

2009-09-17 Thread encompass
onic > way, pal. > > Regards, > Iceberg > > On Sep17, 6:00pm, encompass wrote: > > > I am trying to make a form... > > --- > > def solution_manager(): > >     form = FORM('Solution Name:', > >                 INPUT(_solution_name=&#x

[web2py:31199] Re: silverlight html bridge

2009-09-17 Thread encompass
Silverlight is not cross platform. At least the last time I checked I couldn't use it. I would rather use open standards, something we all have control of. I am sure someone could make tools that could be run inside of web2py that can use silverlight. but if you go and make it a regular practic

[web2py:31198] Can't get the form to validate...

2009-09-17 Thread encompass
I am trying to make a form... --- def solution_manager(): form = FORM('Solution Name:', INPUT(_solution_name='solution', requires=IS_IN_DB (db,'solution.id')), # IS_IN_DB(db,'solution.id'), 'Issue Name:', INPUT(_issue_name='issue', requires=IS_IN

[web2py:31046] Old addresses are staying when post data is given.

2009-09-15 Thread encompass
I have a link as follows: 123.123.123.123:8000/welcome/default/index In a program I use that sends xml data to a computer... The page works innitially except that it doesn't load any images, css etc... It is, infact trying to link from where it came from! otherweb.com/welcome/default/static/etc...

[web2py:30705] Re: Importing XML code

2009-09-11 Thread encompass
uploader(): >     import xml.etree.ElementTree >     mytree=xml.etree.ElementTree.parse(request.body.read()) >     # do something with mytree. look into python docs about it > > On Sep 10, 9:22 am, encompass wrote: > > > I know how to work with xml code.  I just wanted to make

[web2py:30613] Importing XML code

2009-09-10 Thread encompass
I know how to work with xml code. I just wanted to make sure I do it with all the built in libraries that are possible. I have an existing tool that will be sending me an XML in a post request. What is the best way for me to take that data and use it in my Web2py Application? they are not Blogs

[web2py:24536] Re: web2py logo

2009-06-20 Thread encompass
I like the orange one. On Jun 20, 10:22 am, pk wrote: > hi, i (better we) created the logo. > > We think the strong typo represent a strong framework. we like the > typo, because for such a project would it > be perfect, also it`s opensource. the number 2 symbolize a dot between > web and py. th

[web2py:24382] Re: Parsing through and sql-statement

2009-06-17 Thread encompass
GOT IT! Thanks to everyone that helped! I knew I was close... I changed my view to this... {{import random}} {{if len(tags) > 0:}} {{count = 0}} {{for tag in relatedTags.keys():}} {{size=random.randint(1, 4)}}

  1   2   >