MikeEllis | 1 Oct 2009 01:37
Picon

[web2py:31966] Re: Multiple file upload


I've also got a need to support uploading multiple files (perhaps
hundreds at a time) and arranging for each of them to result in a new
database record.  What's the recommended way to do this?
Thanks,
Mike

On Sep 13, 11:35 am, ab <adam.ba...@...> wrote:
> This will require changes in this jquery plugin.
>
> Probably I will have to create few input fields with different name
> for fileuploadinstead using this plugin.
>
> On Sep 13, 5:01 pm, mdipierro <mdipie...@...> wrote:
>
> > This may be an incorrect web2py behavior.
>
> > Would you be able touploadthem with different names instead of
> > calling all of them images?
>
> > On Sep 13, 2:21 am, ab <adam.ba...@...> wrote:
>
> > > Hi
>
> > >   I'm trying to implementmultiplefileuploadusing jQueryMultiple
> > > FileUploadPluginhttp://www.fyneworks.com/jquery/multiple-file-upload/
>
> > >   Here is my form:
>
> > >   <form method="post" enctype="multipart/form-data">
(Continue reading)

Richard | 1 Oct 2009 01:42
Picon
Gravatar

[web2py:31967] Re: app engine data model best practices


> to this point i don't think there are many people sweating bullets over the portability of their app engine apps

I'm not sweating over it, but this is still important for me because
my client may later want their GAE app migrated to a personal server.
Also I don't want to be locked into GAE if their service plans change
for the worse.

Richard

On Oct 1, 8:55 am, AndrewLoot <andrew.luetg...@...> wrote:
> Developers in the two different paradigms SQL vs GAE have different
> concerns. I have no knowledge of all the things that the web2py DAL
> does but it seems to me it has a few purposes that are great in the
> world of SQL databses but either moot or a hinderence in terms of App
> Engine.
>
> they are :
>
> 1: Broad portability of a web2py app: with a single api to implement
> use most common databases
>
> to this point i don't think there are many people sweating bullets
> over the portability of their app engine apps, their sweating bullets
> over performance and scalability and doing new interesting things that
> are hard to do with SQL or only possible under that specific platform.
>
> 2: Object Relational Management: is this a separate layer or part of
> the DAL? I dunno but isn't the app engine api already objectified as
> if an ORM was built into app engine? Perhaps I'm mistaken on this.
(Continue reading)

Jose | 1 Oct 2009 02:11
Picon

[web2py:31968] error when the text is long


Hi,

I have a field such as: Field ( 'myField', length = 20).

Hopefully, when someone completes the form, whether to enter text when
you save the framework truncated after 20 characters and not a
failure.

It's a bug?

Jose
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web2py@...
To unsubscribe from this group, send email to web2py+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Robin B | 1 Oct 2009 02:16
Picon
Gravatar

[web2py:31969] Re: app engine data model best practices


> One entity group per web2py object, lack of list property support,
> etc. dooms the current implementation to "small" web sites. If db.py
> has no tables, will the "Web2py also re-evaluates your model
> definition" overhead vanish?

Yes, and to be practical, there is not much overhead.  I was trying to
answer the question, what is the efficiency difference between web2py
and GAE Models, the truth is there is so little difference it should
not be a concern.

Like I said, the web2py DAL interface is remarkable in that it can
allow adding all these GAE features, and make it backward compatible
with SQL DAL. (win-win)

-batch get/put/delete
    db(db.table.id.belongs(1,2,3)).select(),
    db.table.insert([{},{},{}]),
    db.table.delete(1,2,3)

-list-properties
 db.table.tags=['a','b','c']
 SQL dal already supports this by joining into a delimited string

-transactions by passing a callable
 row.update(lambda row: row.counter+=1)
 SQL dal would just call the callable, since the request is already a
transaction

-storing keys as fields
(Continue reading)

mdipierro | 1 Oct 2009 02:27
Picon
Gravatar

[web2py:31970] Re: video on wiki in 3 minutes


I will post it asap.

On Sep 30, 5:42 pm, Tim Michelsen <timmichel...@...> wrote:
> Hi,
> please see my comment here:http://vimeo.com/6782736
>
> Please create a page (sub-pag of documentation on main web2py) and post
> all appliances that you use in the videos.
> This could help learning along these videos a lot.
>
> Thanks,
> Timmie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web2py@...
To unsubscribe from this group, send email to web2py+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

mdipierro | 1 Oct 2009 02:28
Picon
Gravatar

[web2py:31971] Re: error when the text is long


db.table.myField.requires=IS_LENGTH(20)
to have it validated.

On Sep 30, 7:11 pm, Jose <jjac...@...> wrote:
> Hi,
>
> I have a field such as: Field ( 'myField', length = 20).
>
> Hopefully, when someone completes the form, whether to enter text when
> you save the framework truncated after 20 characters and not a
> failure.
>
> It's a bug?
>
> Jose
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web2py@...
To unsubscribe from this group, send email to web2py+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

mdipierro | 1 Oct 2009 03:25
Picon
Gravatar

[web2py:31972] Re: video on wiki in 3 minutes


http://www.web2py.com/appliances/default/show/55

On Sep 30, 7:27 pm, mdipierro <mdipie...@...> wrote:
> I will post it asap.
>
> On Sep 30, 5:42 pm, Tim Michelsen <timmichel...@...> wrote:
>
> > Hi,
> > please see my comment here:http://vimeo.com/6782736
>
> > Please create a page (sub-pag of documentation on main web2py) and post
> > all appliances that you use in the videos.
> > This could help learning along these videos a lot.
>
> > Thanks,
> > Timmie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web2py@...
To unsubscribe from this group, send email to web2py+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

mr.freeze | 1 Oct 2009 03:47

[web2py:31973] determine if session is new


Asp.net and java have convenience functions for this.  Does web2py? I
can't find it.

Thanks!
Nathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web2py@...
To unsubscribe from this group, send email to web2py+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

mdipierro | 1 Oct 2009 04:37
Picon
Gravatar

[web2py:31974] Re: determine if session is new


No but you can use:

request.cookies.has_key(response.session_id_name)

On Sep 30, 8:47 pm, "mr.freeze" <nat...@...> wrote:
> Asp.net and java have convenience functions for this.  Does web2py? I
> can't find it.
>
> Thanks!
> Nathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web2py@...
To unsubscribe from this group, send email to web2py+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

mdipierro | 1 Oct 2009 04:40
Picon
Gravatar

[web2py:31975] Re: determine if session is new


correction. Try this instead:

response.cookies.get(response.session_id_name,None) !=
response.session_id

is True if the session is new, False otherwise

On Sep 30, 9:37 pm, mdipierro <mdipie...@...> wrote:
> No but you can use:
>
> request.cookies.has_key(response.session_id_name)
>
> On Sep 30, 8:47 pm, "mr.freeze" <nat...@...> wrote:
>
> > Asp.net and java have convenience functions for this.  Does web2py? I
> > can't find it.
>
> > Thanks!
> > Nathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web2py@...
To unsubscribe from this group, send email to web2py+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane