Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Web functions idea

Reply
Thread Tools

Web functions idea

 
 
Mark Carter
Guest
Posts: n/a
 
      11-29-2005
I was musing recently about how one could, for example, set up a really
simple mailing subscription list. It occurred to me that a really simple
way to implement it would be to use xmlrpc.
So there could be a function
subscribe(emailAddress),
which would send an email for confirmation, and another function
confirm(emailAddress, password)
which would confirm the address ... and so on.

Now, the problem is that, if you use xmlrpc, it requires some kind of
fiddly software that the client would have to install. What you would
really want is some kind of web interface instead of xmlrpc - a kind of
"web driven xmlrpc" (that would eliminate the need of an actual xmlrpc
server).

The point of it being this: a developer would just write the functions
that he needed, a la xmlrpc, which would be "exposed" to this new module
(let's call it webrpc) - and webrpc would examine the function, work out
how many arguments it had, and display a form for the user to fill out.
From an application writer's point-of-view, it abstracts away the whole
web process, leaving him free to just concentrate on the underlying
function implementation.
 
Reply With Quote
 
 
 
 
bruno at modulix
Guest
Posts: n/a
 
      11-29-2005
Mark Carter wrote:
> I was musing recently about how one could, for example, set up a really
> simple mailing subscription list. It occurred to me that a really simple
> way to implement it would be to use xmlrpc.
> So there could be a function
> subscribe(emailAddress),
> which would send an email for confirmation, and another function
> confirm(emailAddress, password)
> which would confirm the address ... and so on.
>
> Now, the problem is that, if you use xmlrpc, it requires some kind of
> fiddly software that the client would have to install. What you would
> really want is some kind of web interface instead of xmlrpc - a kind of
> "web driven xmlrpc" (that would eliminate the need of an actual xmlrpc
> server).


Congratulations, you've just rediscovered REST !-)

> The point of it being this: a developer would just write the functions
> that he needed, a la xmlrpc, which would be "exposed" to this new module
> (let's call it webrpc) - and webrpc would examine the function, work out
> how many arguments it had, and display a form for the user to fill out.
> From an application writer's point-of-view, it abstracts away the whole
> web process,


I'm afraid doing web developpement without a minimal knowledge of "the
whole web process" is somewhat unrealistic.

> leaving him free to just concentrate on the underlying
> function implementation.


Turbogears is probably what you're looking for (if not quite what you
describe).

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in ''.split('@')])"
 
Reply With Quote
 
 
 
 
Mark Carter
Guest
Posts: n/a
 
      11-29-2005
bruno at modulix wrote:
> Mark Carter wrote:


> Congratulations, you've just rediscovered REST !-)


Huzzah!

> Turbogears is probably what you're looking for (if not quite what you
> describe).


Thanks. It looks quite interesting.

 
Reply With Quote
 
Larry Bates
Guest
Posts: n/a
 
      11-29-2005
The client software can be written in JavaScript that makes
xmlrpc calls to the server (AJAX). That way there is no
installation required.

But there are loads of free, debugged mailing list programs
out there that use email as the interface. You should take
a look there first.

-Larry Bates

Mark Carter wrote:
> I was musing recently about how one could, for example, set up a really
> simple mailing subscription list. It occurred to me that a really simple
> way to implement it would be to use xmlrpc.
> So there could be a function
> subscribe(emailAddress),
> which would send an email for confirmation, and another function
> confirm(emailAddress, password)
> which would confirm the address ... and so on.
>
> Now, the problem is that, if you use xmlrpc, it requires some kind of
> fiddly software that the client would have to install. What you would
> really want is some kind of web interface instead of xmlrpc - a kind of
> "web driven xmlrpc" (that would eliminate the need of an actual xmlrpc
> server).
>
> The point of it being this: a developer would just write the functions
> that he needed, a la xmlrpc, which would be "exposed" to this new module
> (let's call it webrpc) - and webrpc would examine the function, work out
> how many arguments it had, and display a form for the user to fill out.
> From an application writer's point-of-view, it abstracts away the whole
> web process, leaving him free to just concentrate on the underlying
> function implementation.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: App idea, Any idea on implementation? Matthew_WARREN@bnpparibas.com Python 0 02-05-2008 05:50 PM
App idea, Any idea on implementation? Dr Mephesto Python 3 02-05-2008 06:55 AM
Shared functions vs Non-Shared Functions tshad ASP .Net 11 05-27-2005 05:53 PM
Nested conditional expressions ---- good idea/bad idea? nimmi_srivastav@yahoo.com C Programming 10 02-02-2005 10:51 PM
please help me in distinguish redefining functions, overloading functions and overriding functions. Xiangliang Meng C++ 1 06-21-2004 03:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57