namanhams: (Default)
namanhams ([personal profile] namanhams) wrote in [site community profile] dw_dev2010-03-24 10:30 pm
Entry tags:

Dreamhack : question about structure of directory


Hi ,

According to here wiki.dwscoalition.org/notes/Main_development_folder  :  "anything that appears at http://www.dreamwidth.org/filename.bml will be here, as htdocs/filename.bml" 

But the link to the "Reading page" is :  "YourUserName.dreamwidth.org/read", which i can not find any "read" folder or "read.pl" file in the dw folder.

There are some similar links that i can not find the source file :

"
YourUserName.dreamwidth.org/calendar" -> link to "Archive"
"YourUserName.dreamwidth.org/"   -> link to "Recent entries"
......


Please help to clarify for me. Thanks a lot.

 
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2010-03-24 02:50 pm (UTC)(link)
There are a few exceptions to this, and the main ones are the reading page-related things, which are old and complex and haven't been updated very much. Have a look at talkread, though beware, it's kinda complex.
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2010-03-24 03:40 pm (UTC)(link)
The exception are styled pages in the userspace - accessed by username.dreamwidth.org/ with /read /calendar and entry pages being the big ones.

You will find the info on what is being displayed in those in cgi-bin/LJ/S2/ , and hoe they are displayed in bin/upgrading/s2layers/core2.s2 . There is also cgi-bin/LJ/s2.pm , which you might want to look at.

It's Complicated :)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2010-03-24 04:05 pm (UTC)(link)
Also, some pages are moving away from BML to Template Toolkit, and those pages will not be in htdocs:

http://wiki.dwscoalition.org/notes/Template_Toolkit
alierak: (Default)

[personal profile] alierak 2010-03-24 05:37 pm (UTC)(link)
If you really want to get to the bottom of how URLs are mapped to bits of code that handle them, cgi-bin/Apache/LiveJournal.pm is the place to start. "sub trans" is the registered handler for all requests.