Post #148,314
3/24/04 8:15:41 PM
8/21/07 6:02:22 AM
|

You don't want to try a seaside implementation?
Smalltalk - debug it in your browser if it freaks out.
Java is a joke, only it's not funny.
--Alan Lovejoy
|
Post #148,319
3/24/04 8:27:55 PM
|

Seaside's sessioning is problematic
eg. creating a bookmarkable URL for a post.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #148,320
3/24/04 8:29:19 PM
|

Can you unravel that for the ignorant?
-drl
|
Post #148,333
3/24/04 8:52:44 PM
|

Seaside doesn't use URLs.
There's a gargantuan session thinger that gets included in every page that keeps track of where you "are" in the application: each hit goes to the same URL and only the session info changes. This is great for workflow apps, but horrible for apps that benefit from an actual URL that can be bookmarked and passed around.
[link|http://www.cincomsmalltalk.com/userblogs/avi/blogView?searchCategory=continuations|HREF Considered Harmful]
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #148,335
3/24/04 8:58:15 PM
|

Thanks!
-drl
|
Post #148,393
3/24/04 10:50:25 PM
8/21/07 6:03:13 AM
|

That's a fair point
and one I hadn't considered for an app that's more of a repository (big book thingy) than an application.
I do find his experiements with direct manipulation (inspectors on web UI components) fascinating though.
Java is a joke, only it's not funny.
--Alan Lovejoy
|
Post #148,395
3/24/04 10:53:07 PM
|

Seaside looks great for actual applications
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #148,443
3/25/04 3:00:50 AM
|

Not true
Seaside does have a gargantuan session ID in the URL, but that doesn't have to be *all* there is: the rest can be taken up with useful, bookmarkable info. I don't know exactly what your requirements are, but don't dismiss Seaside just on the bookmarking issue.
See [link|http://www.cincomsmalltalk.com/userblogs/avi/blogView?showComments=true&entry=3256899497|http://www.cincomsma...&entry=3256899497] for more.
|
Post #148,470
3/25/04 9:14:00 AM
|

Ah, good. I'll have to look at Seaside again. (new thread)
Created as new thread #148469 titled [link|/forums/render/content/show?contentid=148469|Ah, good. I'll have to look at Seaside again.]
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #148,343
3/24/04 9:23:20 PM
|

can that be bypassed?
as in --nosessionthingy thanx, bill
In Bush\ufffds America, fighting terrorism abroad is used as a pretext for vanquishing civil liberties at home. David Podvin questions, help? [link|mailto:pappas@catholic.org|email pappas at catholic.org]
|
Post #148,397
3/24/04 11:05:29 PM
8/21/07 6:03:22 AM
|

Not exactly
Its because of Seaside's world view. It wants to be an application with state. The fact is that most of iwethey is comfortably stateless (adding a post is perhaps the one stateful bit).
So maybe its the wrong tool for the job here because of the URL idea.
There is a package called Janus written by Cees de Groot that is designed to trick the Googlebot and make a Seaside site searchable. I don't think its a general solution to bookmarks though.
---------------From the Seaside List---------------- Janus, the two-headed god, makes his entry in Seasideland!
[link|http://tai42.xs4all.nl/~cg/mc|http://tai42.xs4all.nl/~cg/mc] has the initial MC file for 'Tric-Janus', which is a small package that makes Seaside apps spider-friendly in the following way:
It can be used instead of WAKom (so 'JanusKom startOn: 1234'), and inspects every request: - a request for /robots.txt is intercepted (note: forward these requests from Apache!). If the request is made from a known spider, everything is allowed; otherwise, everything is denied - a corresponding text file is returned; - a known spider makes a different request. If yes, the cache of 'static pages' is used to answer the request; - all other requests are passed to the code in WAKom.
The 'cache of static pages' needs to be built up by the application. This might be application-dependent - the current solution certainly is, because it assumes that at the time the request is handled, the whole structure of the page is known. JanusSession can be used for Janus-aware subclasses and simply adds a method #addToPath:staticContents which does the same as the original #addToPath:, but also registers the passed static contents in the cache of static pages under the full path.
Furthermore, JanusKom has a class-side method to register certain urls as indexes - this can be used to make sure that for certain urls an index rather than a page is returned, which might help in some cases to suck a bot into a site.
So, when Janus decides to feed from the static pages cache, it returns a known page under the requested URL (if not overridden as an index URL) or, if no pages is found, an index. An index consists of a list of HREFs to all the static pages in the cache with the same prefix as the requested URL (I'm not sure there whether this is the best solution).
Gardner (same MC repository) has been modified to support this. GWSession subclasses from JanusSession and calls #addToPath:staticContents:, and GWPage has a method #renderStatic to support this - the only difference is that this method renders path-based rather than Seaside-based HREFs.
The end result should be that Gardner Wikis can be visited by spiders without problems, while still allowing you the freedom to add Seaside bells&whistles. Also, the spiders will not see any of the Wiki buttons etcetera, so they'll pull much less data from your site (they won't have access to all the old versions, for example). Furthermore, this might be a nice way to render static wikis - just hit the site with wget -m (which Janus thinks is a spider) and you get a copy.
I've added a list of 158 user agent patterns I grabbed from The InternetOne's webserver logs, if there are any remarks about the list I'll be happy to hear it.
There's still work to be done, like not writing the cache on every hit, etcetera, but at this time I'm mostly interested in comments about the operating principle.
Java is a joke, only it's not funny.
--Alan Lovejoy
|
Post #148,321
3/24/04 8:30:17 PM
|

This is a great idea
Why not give it a shot? We have a working model that is small enough to be managable but complex enough to be testworthy.
-drl
|