Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2011, 04:35 AM   #1
Naderstouhy
Enthusiast
Naderstouhy began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
Adding new web page

whenever i try to add a new webpage with an href to the browse.html (i've added the file : test.html & test.js to the browse folder)

---------------------------------------------------------
i got this message :

404 Not Found

The path '/test' was not found.

Traceback (most recent call last):
File "C:\Python25\Scripts\calibre\src\cherrypy\_cpreque st.py", line 606, in respond
File "C:\Python25\Scripts\calibre\src\cherrypy\_cperror .py", line 227, in __call__
NotFound: (404, "The path '/test' was not found.")


what should i modify in order to add the new page ?
Naderstouhy is offline   Reply With Quote
Old 07-18-2011, 11:22 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,949
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to implement a route mapping for the page
kovidgoyal is offline   Reply With Quote
Old 07-18-2011, 02:59 PM   #3
Naderstouhy
Enthusiast
Naderstouhy began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
Please can you clarify what do you mean by route mapping ? i'm not familiar with it, thanks

Quote:
Originally Posted by kovidgoyal View Post
You need to implement a route mapping for the page
Naderstouhy is offline   Reply With Quote
Old 07-18-2011, 04:00 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,949
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Look at the add_routes() functions.
kovidgoyal is offline   Reply With Quote
Old 07-19-2011, 03:14 AM   #5
Naderstouhy
Enthusiast
Naderstouhy began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
i added to the server.browse.add_routes

connect('test', base_href+'/test', self.browse_catalog)

didn't work properly, i have the same error


Quote:
Originally Posted by kovidgoyal View Post
Look at the add_routes() functions.
Naderstouhy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Page To Mobi? Jonnster Kindle Formats 5 05-23-2011 01:48 PM
Adding metadata page (without reconversion)? thrawn_aj Calibre 2 12-19-2010 08:06 AM
web page source Tulot enTourage Archive 3 12-18-2010 09:14 AM
Adding a cover/front page Lynk Recipes 3 10-03-2010 06:14 PM
Adding web pictures to book cheyennedonna enTourage Archive 0 05-06-2010 10:55 AM


All times are GMT -4. The time now is 02:40 PM.


MobileRead.com is a privately owned, operated and funded community.