×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    2

    How to change webcontent.sis?

    Hello,
    I am trying to develop some stuff with the raccoon web server and I would like to change the content of the given module webcontent.sis
    I found some instructions about how to compile sis files from python files on www.mobilenin.com, but I still haven't found the python source code for the webcontent.sis file.
    If anybody knows where I can find that code, please tell me!

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: How to change webcontent.sis?

    Hi,

    The content of webcontent.sis is part of the Raccoon source distribution that you can download from http://sourceforge.net/projects/raccoon. It's the file with src in its name.

    The "package" file used for generating webcontent.sis is mws/phone/httpd/install/webcontent.pkgi. "Package" in quotes because the actual package file is generated from that file as part of the process for generating the installation SIS-files.

    Incidentally, if you want to put new Python/PSP scripts on the phone or edit the existing ones, then generating a SIS-file is not the right way to go. If you explain what you want to accomplish, I might be able to suggest a way for doing that

    Br,
    Johan
    Last edited by jhnwkmn; 2006-11-27 at 19:46.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    9

    Re: How to change webcontent.sis?

    Hello,
    I'll be interested too in putting new Python/PSP scripts on the phone or edit the existing ones: How can it be done?
    Thanks,
    Ernesto

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: How to change webcontent.sis?

    Hi,

    There are at least the following options for getting HTML-files and scripts to the phone.

    1. Edit locally
    You can edit the files and even create new ones directly on the phone using some file/text editor. Obviously this is quite painful and something you don't do if you can use some other alternative.

    2. Create SIS-file
    You can create a SIS-file, similar to the default webcontent.sis, containing your new files and install them as you normally install software to the phone. When you are developing web-applications/pages this is unnecessarily complex, but it is probably the best alternative if you want to share your stuff with other people.

    3. PC-Suite
    Install PC-Suite and use it for copying files from the phone and for uploading files you have created on your PC to the phone. Pretty convenient and fairly robust as well.

    4. WebDAV
    The coolest alternative, which is also pretty bleeding-edge, is to use WebDAV. Using it you can mount the file-system of your phone to your PC and work on the files on the phone directly, using your favourite editor and other tools.

    WebDAV is password protected, so you need to define one in the file /Data/Apache/conf/users. This is something of a chicken-egg problem, so you need to define the account/password using one of the alternatives 1, 2, or 3.

    IE has built-in WebDAV support so you can try it out with it. [File]->[Open], check the 'Open as Web Folder' checkbox and enter http://your-url/edit and press [Ok]. You'll be prompted for a username and password and having entered that you should see the content of your htdocs directory. From/to the IE window you can drag/drop files.

    To benefit the most from WebDAV you'll need a client that allows you make the phone file-system appear as a drive on your PC. Then you can simply modify a file, press reload on the browser, and see what effect your change had.

    NOTE The WebDAV support is somewhat shaky, so don't be surpriced if things don't always work the way you might expect.


    At the moment using PC-Suite is likely to be the safest alternative while still being fairly convenient.

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    2

    Re: How to change webcontent.sis?

    Thanx for the information. I installed PC Suite and now I can edit the files I need to edit. But now I have some more questions. In the concept demos site (./htdocs/concepts.html) there are some links like this:
    ../proximity
    ../favourites
    ../calendar
    ../s60v2-images/
    and so on...

    But in the htdocs folder I can't find any of these folders. And also in the mod_python folder I can't find any hints to solve this question.
    I would like to know how the images website is created and how to turn on/off password requirement.

  6. #6
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: How to change webcontent.sis?

    The links /calendar, /camera, /webcam, /contacts, /logs, /messages, /inbox, /im, and /favourites have been implemented using native Apache modules. Hence you will not find anything related to them in the file-system. The actual mapping between the link and the functionality is done in httpd.conf, in sections like
    Code:
    <Location /im>
    SetHandler im
    </Location>
    That section specifies that the handler for the link /im is the handler known as im. Don't let the fact that the names are identical confuse you. They could be completely different.

    In httpd.conf, you'll find the line
    Code:
    Alias /s60v2-images "C:/Nokia/Images"
    That line specifies that the link /s60v2-images is an alias for the directory C:/Nokia/Images. That's were the pictures are stored.

    If you now look further up in httpd.conf, you'll find
    Code:
    <Directory "C:/Nokia/Images/">
    # Change 'valid-user' to a specific user or comment the line out if 
    # want to allow access to anybody.
      Require valid-user
    </Directory>
    Simply stash a # in front of Require valid-user, or delete the line completely, and anybody can access your images.

    The images page is created using default Apache functionality for presenting the contents of a file-system directory. You can find more information here: http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html

Similar Threads

  1. Change icon in listbox
    By ninidotnet in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-10-12, 02:57
  2. [Theme Creation] Change IM-Icon
    By danielku15 in forum General Development Questions
    Replies: 0
    Last Post: 2006-04-30, 23:25
  3. Replies: 0
    Last Post: 2003-10-06, 12:28
  4. change focus
    By f_alonso_1 in forum Symbian
    Replies: 0
    Last Post: 2003-07-17, 13:34

Posting Permissions

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