I am coding the Resource "extension" that this thread refers to and I
have a design question.

Currently SQLForm takes an optional upload argument that specifies a
controller/function to be used when uploading files.

In the Resource approach, there is no SQLForm.  The controller creates
a resource, e.g. a db record, that is passed to the view.  The view
can then call a Resource method - as() - to get a representation of
the Resource, e.g. as an HTML form.

My question is: "which element of MVC should specify the upload
argument?"

My current feeling is that the controller should specify this when
creating the resource.  It doesn't seem correct to specify this in
either the model (which doesn't know the use context) or the view
(which should only be concerned with presentation).  But that's just
my opinion and I would like to hear any alternatives.

Supplementary questions:
1) Must the upload link be a controller/function or could it be any
url?

2) Would it be useful optionally to specify different a controller/
function/url for each resource fields?

On Nov 11, 7:56 pm, billf <[EMAIL PROTECTED]> wrote:
> Oops - thanks Timothy :-)
>
> Well some can get the page and some can't.  Can achipa or Keith or
> anyone who gets the problem try storing the source locally (if they
> can access it at all!) and see if they still get the problem?  and if
> so take out stuff to find the offending article?
>
> On Nov 11, 7:34 pm, Timothy Farrell <[EMAIL PROTECTED]> wrote:
>
> > It's amazing how critical that ".co.uk" 
> > is.http://www.wellbehavedsystems.co.uk/web2py/examples/mvc.html
> > billf wrote:Wes The home page is a do-nothing page. The doc can be found 
> > athttp://www.wellbehavedsystems/web2py/examples/mvc.htmlOnNov 11, 7:21 pm, 
> > "Wes James"<[EMAIL PROTECTED]>wrote:All i get in safari is a box with a 
> > question mark and the source of the page looks like this: <html> 
> > <head><title>Well-behaved Systems</title></head> <body> <img 
> > src="banner.gif" title="Well-behaved Systems" alt="Well-behaved Systems"/> 
> > </body> </html> On Tue, Nov 11, 2008 at 12:13 PM, billf<[EMAIL 
> > PROTECTED]>wrote:Ugh!  If anyone can help me stop that I'd be grateful.  I 
> > don't get the problem.  I copied the meta lines from another page - could 
> > there be something in there that some clients don't like?Any help 
> > gratefully received.On Nov 11, 6:25 pm, Keith Edmunds<[EMAIL 
> > PROTECTED]>wrote:On Tue, 11 Nov 2008 02:10:23 -0800 (PST),[EMAIL 
> > PROTECTED]:Am I the only one who gets "Firefox can't find the server 
> > atwww.wellbehavedsystems.co.uk" ?No, you're not. Every time I try to read a 
> > document on Bill's website, I have to flush my DNS cache (note: not my 
> > browser cache). I haven't looked into why, but it's the only site I have to 
> > do that with.Keith-- Keith 
> > Edmunds+-------------------------------------------------------------------------+
> >  |    Tiger Computing Ltd    |  Helping businesses make the most of Linux  
> > | |  "The Linux Specialists"  |      http://www.tiger-computing.co.uk   | 
> > +-------------------------------------------------------------------------+
>
> >  tfarrell.vcf
> > < 1KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to