[web2py] Re: Advice on Architecture/Design

2013-08-17 Thread Carlos Zenteno
the team is the tenant and the groups are the positions of the players. a player can be assigned to more than one group. On Thursday, August 15, 2013 9:18:22 PM UTC-7, Alex Glaros wrote: > > develop for multi-tenant from the beginning or else you will waste time > re-entering corrected designed

[web2py] Problem streaming videos in OS X

2013-08-17 Thread Steve Chalmer
When I upload a video file (in MPEG4 format) to the static area, only the first several seconds will play in the video control appearing on the page. This happens whether I use an auth.wiki() provisioned page, or if I simply embed a ... tag on the Welcome index page. I've tried both video files

[web2py] diffrence between web2py and django framework...

2013-08-17 Thread Udeme Samuel
hello developers please i am new to web2py and django but i want to know what is the diffrence between the two of them and which of the framework is more productive... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from

[web2py] Re: Load content from a text file

2013-08-17 Thread Massimo Di Pierro
Now many clients need to access this at one time? The issue is the workload on the pi. On Friday, 16 August 2013 17:40:29 UTC-5, Kenneth wrote: > > Hello everyone, > > I'm planing on running web2py on an Raspberry Pi. On the computer there > will also be an app that listens on the serial port a

[web2py] How to identify the active .table files

2013-08-17 Thread at
Hi, In databases folder of a running web2py application, there are four .table files for the same table. How can be identified that which of these files are currently being used by the application? 103902c891e80b37c5ca0f9d021b98e8_option.table 13012917802f9750f7e6aec22cf2fb30_option.table c5f36

[web2py] Re: Load content from a text file

2013-08-17 Thread Jim Gregory
Do you need to use a text file as an intermediary? I created a similar app for my pedal-powered laptop (described at www.pedalpc.com) where a function is called in the controller that reads/writes the serial port and returns the data as JSON which just updates the necessary data in the page in t

[web2py] Re: An architectural strategy for a website - I'd like comments

2013-08-17 Thread Ykä Marjanen
Thanks guys! So for next level strategy I will: 1) Determine and cache all queries and calculations that are non user spefic (e.g. ranking of all participants) - This can be done either with cached select(), or using cache.ram/memcache/redis directly - These could be done in a model level to ma

[web2py] Re: How to identify the active .table files

2013-08-17 Thread Niphlod
the part preceding the _options is the md5 of the connection string. If you want a quick and dirty method, backup those files to another dir, set fake_migrate=True and let web2py recreate the "current" file. On Saturday, August 17, 2013 12:08:10 PM UTC+2, at wrote: > > Hi, > > In databases folde

[web2py] Re: Use cases of many to many reference

2013-08-17 Thread Niphlod
there has to be some place in your logic that has both of them: if this isn't the case, you'll never reach the part where you insert those values in your table On Saturday, August 17, 2013 4:39:18 AM UTC+2, Chun-Hung Chen wrote: > > Thanks. > I have tried the custom validator but it does not

[web2py] Send and save as draft email forms

2013-08-17 Thread Alan Etkin
This is a question from a web2py user that was sent to my mail. Has anybody solved this? *Q: How do we create a Compose Form in web2py to compose, save and send an Email?* *Do you have any examples or references that we can look at?* *Also how to do the Send versus Save as Draft form cre

[web2py] making true copy of HTML helpers

2013-08-17 Thread step
I discovered one way to make a true copy of some list of HTML helpers. I would like to know if there are other more, web2py / pythonic ways to do it. So for instance: form = SQLFORM.factory() trs = form.elements('') trs_true_copy = map(lambda x: TAG(x.xml()),trs) which works just fine, though i

[web2py] Re: making true copy of HTML helpers

2013-08-17 Thread step
And in fact it isn't a true copy because after the mapping the so called trs_true_copy has lost all the SQLFORM specific data, like links to form.vars, etc. So I don't know of a way to make a true copy, and I'm asking for one. Thanks. On Saturday, August 17, 2013 2:19:39 PM UTC+2, step wrote:

[web2py] Re: Send and save as draft email forms

2013-08-17 Thread Alan Etkin
> *Q: How do we create a Compose Form in web2py to compose, save and send > an Email?* > > I'd use SQLFORM.factory to collect the mail data and, after the form submission, use the welcome app's mail object to send the message with smtp (passing the user's smtp connection parameters maybe store

[web2py] Re: making true copy of HTML helpers

2013-08-17 Thread Niphlod
there's a conceptual problem with your question either you want to save a list of HTML helpers or you need to save a full-blown form. Of course you serializing only the HTML part of the form won't get you form.vars, form.accepts(), etc etc. I'm curious though, what and why do you need it? O

[web2py] Re: Send and save as draft email forms

2013-08-17 Thread Alan Etkin
I have opened an issue requesting the mail storage feature. https://groups.google.com/d/msg/web2py/WrFGJhGI8ds/q8SvGEuZwZUJ -- --- 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,

Re: [web2py] IS_IN_DB zero= solution

2013-08-17 Thread Richard Vézina
jQuery!! When the select is focused popup something like tooltip in bootstrap... Richard On Fri, Aug 16, 2013 at 2:59 AM, Niphlod wrote: > > >> In my table definitions I do use comments to give directives, however, >> this is a custom form on a landing page, and I think labels and comments in

[web2py] Re: Send and save as draft email forms

2013-08-17 Thread PRACHI VAKHARIA
Below are the main features that are required for Email » 1. *Reading (IMAP-POP) * 2. *Writing (composing) * 3. *Saving (drafts) * 4. *Sending (SMTP) * 5. *Managing Attachments * 6. *Fetching Email Headers only* Features 1 and 4 do exist in w2p, and is very we

[web2py] Date search on sqlform.grid not working

2013-08-17 Thread Leonardo Pires Felix
Hi, I'm trying to do a search by date with sqlform.grid. But it is not returning the right date. There is a picture on attachment of the issue. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiv

[web2py] Re: Send and save as draft email forms

2013-08-17 Thread Alan Etkin
> > *6. Fetching Email Headers only* > * *AFAIK, that is implemented already*. *The adapter only fetches the whole message if the fields selected do not belong to the header. For example: >>> imap(...).select(imap.inbox.sender, imap.inbox.created, imap.inbox.subject) would only fetch the heade

Re: [web2py] Re: Load content from a text file

2013-08-17 Thread Kenneth Lundström
Hello, only one max two clients at a time will access this page. I don't even see why two clients would be accesing this page if not a supervisor wants to check on the progress of an worker. Jim, not quite sure how to do what you suggest. The serial communication is using an special protocol

[web2py] Re: Send and save as draft email forms

2013-08-17 Thread PRACHI VAKHARIA
On Saturday, August 17, 2013 12:37:54 PM UTC-4, Alan Etkin wrote: > > *6. Fetching Email Headers only* >> > * > *AFAIK, that is implemented already*. *The adapter only fetches the whole > message if the fields selected do not belong to the header. For example: > > >>> imap(...).select(imap.inbox

[web2py] Re: Date search on sqlform.grid not working

2013-08-17 Thread Leonardo Pires Felix
I've found something, when i do the search using the date picker, it returns me in the format of the translation file("%d/%m/%Y"), but when use like this to do the search, it returns nothing or something not expected. But if i mannually change the format from the search on the sqlform.grid to "

[web2py] Re: urlify - no char mapping

2013-08-17 Thread lesssugar
It works great, but I'm not getting "ł" character mapped using IS_SLUG.urlify(string). How do I make sure all special characters (e.g. latin ones) get mapped? Do I need to use a custom mapping dictionary or there's maybe an easier, built-in way? On Saturday, August 17, 2013 12:48:17 AM UTC+2, l

[web2py] GAE is converting Integers to Longs and len() breaks

2013-08-17 Thread davedigerati
My app is working locally fine with a field defined as Field('Q2V','integer'), then in the controller I have been able to len(Q2V) but after upload to Google App Engine I am tripping with object of type 'long' has no len() I've been abel to discover that apparently GAE will map Inte

Re: [web2py] GAE is converting Integers to Longs and len() breaks

2013-08-17 Thread Jonathan Lundell
On 17 Aug 2013, at 1:06 PM, davedigerati wrote: > My app is working locally fine with a field defined as > Field('Q2V','integer'), > > then in the controller I have been able to > len(Q2V) > > but after upload to Google App Engine I am tripping with > object of type 'long' has no le

Re: [web2py] GAE is converting Integers to Longs and len() breaks

2013-08-17 Thread David Gawlowski
Shoot, thanks, you're right, that field was a string and I changed it to do math on elsewhere... Do you know how to take the far right number of a two digit number? Will something like field[-1] work like it does on strings? On Aug 17, 2013 4:14 PM, "Jonathan Lundell" wrote: > On 17 Aug 2013, a

Re: [web2py] diffrence between web2py and django framework...

2013-08-17 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 16-08-2013 19:09, Udeme Samuel escreveu: > hello developers please i am new to web2py and django but i want to know what > is the diffrence between the two of them and which of the framework is more > productive... > > -- > > --- > You received

Re: [web2py] GAE is converting Integers to Longs and len() breaks

2013-08-17 Thread Jonathan Lundell
On 17 Aug 2013, at 1:40 PM, David Gawlowski wrote: > Shoot, thanks, you're right, that field was a string and I changed it to do > math on elsewhere... > > Do you know how to take the far right number of a two digit number? Will > something like field[-1] work like it does on strings? > You c

[web2py] Re: Send and save as draft email forms

2013-08-17 Thread Alan Etkin
> > It would be great and neat to have the *Compose + Draft + Send* features > also implemented in a simple format. > Here's a simple project I started some time ago for a web2py mail client app that you can use as example. http://code.google.com/p/gpo2py/ -- --- You received this message

[web2py] Re: MOD_WSGI and web2py doesn't allow url below root

2013-08-17 Thread jonten
Hi Massimo, I am just curious to know if it is better to modify BASE in routes.py than using the config below in Apache vhost config instead of WSGIScriptAlias? Or if it is equvivalent: WSGIScriptAliasMatch ^/myapp.* /var/www/web2py/wsgihandler.py Best regards, //Jon -- --- You received th

[web2py] Re: db.mytable.myfield.contains() gives an error Query Not Supported: parser stack overflow

2013-08-17 Thread dave
I guess nobody encountered this issue before? On Thursday, August 15, 2013 11:59:31 AM UTC-7, dave wrote: > > . > . > . > x = ['a', 'b', 'c', ...] > queries.append(db.mytable.myfield.contains(x)) > query = reduce(lambda a,b:(a&b),queries) > grid = SQLFORM.grid(query, ...) > > return (grid=grid) >

[web2py] Re: Advice on Architecture/Design

2013-08-17 Thread Alex Glaros
by positions of the players do you mean like all of the forwards and goalkeepers? can you provide a use case for your app? http://en.wikipedia.org/wiki/Use_case On Friday, August 16, 2013 9:47:36 AM UTC-7, Carlos Zenteno wrote: > > the team is the tenant and the groups are the positions of th

[web2py] Re: sharing my d3.js experiments with web2py community

2013-08-17 Thread greaneym
Dave, I put an updated set of d3.js examples on my github page. Try the web2py-1.app.d3anim.w2p which contains more examples, including "overlayed on a page". You can change these examples by adding your own html files by "extending" or "including" html files, and you can read more about th