You Are Here:

Community: Developer Discussion Boards

#1 Old Smile py2sis capability for accessing calendar - 2008-02-11, 21:07

Join Date: Jan 2008
Posts: 10
dani2mobile
Offline
Registered User
Hi ...

I had a python script that uses 'import calendar' and
a small piece of code to add appointments

Code:
		
new_entry = db.add_appointment()

new_entry.set_time(now+last,now+last+hour)

new_entry.content=goal

new_entry.location='Location:Facebook'

new_entry.commit()
Everything is working well and fine as python script the generated appointments are getting logged in calender.

But after converting into sis ... and successfully installing it on my N73 device .. I find that the app runs and exits before syncing my appointments with calender

I have tried the following options as capabilities

Code:
sudo ensymble_python2.5-0.25.py py2sis --appname="Dani" --shortcaption="go4it." -caps="NetworkServices+LocalServices+ReadUserData+WriteUserData+Location" --caption="My Application"--version=1.2.3 --verbose /home/irayan/py2sis/myapp.py
Please guide me ...
Reply With Quote

#2 Old Re: py2sis capability for accessing calendar - 2008-02-12, 19:21

Join Date: Mar 2003
Posts: 125
Location: UK
aya42
Offline
Regular Contributor
Quote:
Originally Posted by dani2mobile View Post
Code:
...
caps="NetworkServices+LocalServices+ReadUserData+WriteUserData+Location"
...
Well, you should only need the ReadUserData and WriteUserData caps to read and write the calendar data respectively.

As I understand it, the only valid caps for a self-signed SIS are: NetworkServices, LocalServices, ReadUserData, WriteUserData, and UserEnvironment. It's possible that the inclusion of the 'Location' cap is causing ensymble to fail in some way.

There should be a clue when you install the SIS on the devices, as it should pop-up a warning listing the capabilities you have requested when installing a self-signed SIS.

Try removing the 'Location' cap, and see if that helps. If not, make sure you include the output from ensymble in any followup post.

The other possibility is that your script is trying to import another script which you have not included in the SIS file.
Reply With Quote

#3 Old Re: py2sis capability for accessing calendar - 2008-02-12, 20:52

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
To get a better picture of where your stand-alone application halts, you can enclose the script in an exception harness. You'll get an exception dump if the program fails for some reason.


Quote:
Originally Posted by dani2mobile View Post
Code:
sudo ensymble_python2.5-0.25.py ...
Not an issue here, but "sudo" is not needed. Ensymble does not require root capability on UNIX/Linux.
Reply With Quote

#4 Old Re: py2sis capability for accessing calendar - 2008-02-21, 20:45

Join Date: Jan 2008
Posts: 10
dani2mobile
Offline
Registered User
Hi..Thanks aya42 for replying, I tried porting the script again, into sis using ONLY the following capabilities
Code:
C:\Python25>python ensymble_python2.5-0.25.py py2sis --appname="Dani" --shortcaption="go4it." -caps="Net
workServices+ReadUserData+WriteUserData" --caption="My Application"--version=1.2.3 --verbose myapp.py
The following is the output of the ensymble
Code:
ensymble_python2.5-0.25.py: warning: no application version given, using 1.0.0
ensymble_python2.5-0.25.py: warning: no UID given, using auto-generated test UID 0xe305818a
ensymble_python2.5-0.25.py: warning: no certificate given, using insecure built-in one

Input file(s)     synCHRONUSoff.py
Output SIS file   synCHRONUSoff_v1_0_0.sis
UID               0xe305818a
Application name  Dani
Version           1.0.0
Language(s)       EN
Icon              <default>
Short caption(s)  go4it.
Long caption(s)   My Application--version=1.2.3
Install drive     <any>
Text file(s)      <none>
Certificate       <default>
Private key       <default>
Capabilities      0x0 (NONE)
Vendor name(s)    Ensymble
Autostart         No

Still, I face the same issue ... "The python script" runs perfectly and makes appropriate entries into calender ... but the sis file after getting perfectly installed exists before making entries to calender

@jethro.fn ... Thanks for replying, I still need to implement your suggestion and check ...
Reply With Quote

#5 Old Re: py2sis capability for accessing calendar - 2008-02-22, 23:46

Join Date: Mar 2003
Posts: 125
Location: UK
aya42
Offline
Regular Contributor
Quote:
Originally Posted by dani2mobile View Post
Code:
...
Capabilities      0x0 (NONE)
...
There's the clue.

Quote:
Originally Posted by dani2mobile View Post
Code:
... -caps="NetworkServices+ReadUserData+WriteUserData" ...
And there's the problem. Change "-caps" to "--caps".
Reply With Quote

#6 Old Re: py2sis capability for accessing calendar - 2008-02-24, 19:26

Join Date: Jan 2008
Posts: 10
dani2mobile
Offline
Registered User
Thanks aya42 and others ... I now, have my app running perfectly!!! ... I wud like to have more information over removing the warning [due to self signed py2sis conversion] during the app installation.
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
S60 2nd to 3rd/ PlatformSecurity / Capabilities jarkoos Installation, Certification and Security 4 2007-04-14 15:08
API capability requirements mark_williams General Symbian C++ 52 2006-07-27 10:45
What is Illegal Capability Roose General Symbian C++ 2 2006-03-09 16:07
How to avoid insertion of duplicate entries in device calendar?? symnewbie General Symbian C++ 1 2005-10-27 23:52
Problem in Deleting all the calendar entries? symnewbie General Symbian C++ 0 2005-06-17 15:19

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