You Are Here:

Community: Developer Discussion Boards

#1 Old interactive request handler? - 2008-03-29, 00:10

Join Date: Mar 2008
Posts: 12
unoll
Offline
Registered User
hello,
i've a little application served by mobile web server on my n95:

...
def handler(req):
r=""
req.content_type = 'text/plain'
r = doSomething()
req.write(s)
return apache.OK

is there a way to catch an incoming request and ask for confirmation, e.g.

if appuifw.query(u"exec script?","query") == True
...

like in an app that would run locally on the phone?
any other idea how to confirm incoming requests?

thanks + best, uno
Reply With Quote

#2 Old Re: interactive request handler? - 2008-03-29, 08:53

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by unoll View Post
hello,
i've a little application served by mobile web server on my n95:

...
def handler(req):
r=""
req.content_type = 'text/plain'
r = doSomething()
req.write(s)
return apache.OK

is there a way to catch an incoming request and ask for confirmation, e.g.

if appuifw.query(u"exec script?","query") == True
...

like in an app that would run locally on the phone?
any other idea how to confirm incoming requests?

thanks + best, uno
Hi,

I hope I understood your question,

Well, there are certain application approaches where you might want to request a confirmation from the user when there is an incoming call.
Eg. For a call recorder application, whether the user wants the call to be recorded or not?

But it will possible only when the call is received, that is once the call is picked up then a confirmation can be requested,
This can be done by using the callstatus.

Hope it helps.

Best Regards
Croozeus
Reply With Quote

#3 Old Re: interactive request handler? - 2008-03-29, 10:16

Join Date: Mar 2008
Posts: 12
unoll
Offline
Registered User
thanks croozeus,
but here we have an incoming http-request on the mobile web server, not a phone call. what i want to do is:
- mobile web server mws is running on the phone
- user connects to an url on the phone, e.g. my.py?action=camera
- my.py takes a snapshot and returns it to the requesting client.

this works well, but i want to have control, e.g. a confirmation request, so that i (the phone user) can decide whether to let the (web)user take a snapshot or not. would it be possible somehow? it's easy in a local application on the phone with appuifw.query, but is there a way for http-requests?
thanks & best regards, uno
Reply With Quote

#4 Old Re: interactive request handler? - 2008-04-06, 15:33

Join Date: Mar 2008
Posts: 47
maggias
Offline
Registered User
Hi unoll,

I have been dealing with the same problem, that is using appuifw library from the mobile web server. Here is a description of how I solved it http://maggi.bablish.com/?p=1 hope it helps.

In your case you could have the mobile web server make a call to a function asking for the user permission to take the picture, then take the picture and send the result back.

best regards,
Magnus
Reply With Quote

#5 Old Re: interactive request handler? - 2008-04-06, 20:36

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by maggias View Post
Hi unoll,

I have been dealing with the same problem, that is using appuifw library from the mobile web server. Here is a description of how I solved it http://maggi.bablish.com/?p=1 hope it helps.

In your case you could have the mobile web server make a call to a function asking for the user permission to take the picture, then take the picture and send the result back.

best regards,
Magnus
hi maggias.

ur Pylaunch is great i havnt tried yet but it really sounds excellent.
keep it up and have more applications.
thankx


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
ImportError: No module named _appuifw ernesto.ferrari Mobile Web Server 9 2008-04-18 06:36
Custom request fields with http get/post browndrf Mobile Java Networking & Messaging & Security 2 2006-11-08 20:57
HTTP Request Pipelining shashishaw Symbian Networking & Messaging 2 2006-08-25 17:24
How can i solve this error? symbian-newbie General Symbian C++ 6 2006-05-23 06:33
Getting started with Carbide.vs -- running the app ET3D Symbian Tools & SDKs 6 2005-11-23 18:45

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ