SteveA | "i am an archivist!" | 00:12 |
---|---|---|
SteveA | "i know what i want, and i know where to file it!" | 00:12 |
SteveA | "i need to index dewey decimally!" | 00:13 |
SteveA | "cos I.... wanna be.... " | 00:13 |
SteveA | "well preserved" | 00:13 |
th1a | Rick is archiving Samuel Johnson's papers at Harvard. | 00:13 |
SteveA | hell, the sex pistols never were good with rhyming | 00:14 |
th1a | OK, I get it now :-) | 00:14 |
th1a | Harder to pick up when you can't hear the tune. | 00:14 |
SteveA | there's a tune? | 00:15 |
SteveA | the sex postols never were good with tunes | 00:15 |
th1a | Well, the sneer. | 00:15 |
tvon | haha | 00:15 |
*** gintas has quit IRC | 00:26 | |
*** jinty has quit IRC | 00:47 | |
*** jinty has joined #schooltool | 00:59 | |
*** jinty has quit IRC | 01:14 | |
th1a | The games for the NGage seem to have uniformly crappy reviews. | 01:32 |
*** FarcePest has left #schooltool | 03:25 | |
*** tvon has quit IRC | 07:14 | |
*** tvon has joined #schooltool | 08:25 | |
*** tvon has quit IRC | 09:03 | |
*** Aiste has joined #schooltool | 13:24 | |
*** thisfred has quit IRC | 15:47 | |
*** thisfred has joined #schooltool | 15:51 | |
*** alga has joined #SchoolTool | 15:51 | |
*** gintas has joined #schooltool | 16:11 | |
*** SteveA_ has joined #schooltool | 16:36 | |
*** Aiste has quit IRC | 16:44 | |
*** SteveA has quit IRC | 16:46 | |
*** gintas has quit IRC | 17:17 | |
*** gintas has joined #schooltool | 17:17 | |
*** alga has quit IRC | 17:39 | |
*** bskahan has joined #schooltool | 18:25 | |
*** bskahan has quit IRC | 18:42 | |
*** bskahan has joined #schooltool | 18:46 | |
bskahan | a good goal for STC 1.[01] would be to get packages into fedora/REL/Novell | 18:53 |
*** SteveA__ has joined #schooltool | 19:01 | |
*** Aiste has joined #schooltool | 19:02 | |
*** tvon has joined #schooltool | 19:03 | |
*** SteveA_ has quit IRC | 19:09 | |
*** SteveA__ is now known as SteveA | 19:26 | |
*** ignas has joined #schooltool | 19:27 | |
*** mgedmin has joined #schooltool | 19:33 | |
*** bskahan has quit IRC | 19:47 | |
*** bskahan has joined #schooltool | 20:05 | |
*** gintas has quit IRC | 20:27 | |
*** jinty has joined #schooltool | 20:45 | |
*** alga has joined #SchoolTool | 21:39 | |
tvon | wth... I added a favicon.ico + the appropriate line to configure.zcml and tests are failing all over with traversal errors | 21:52 |
tvon | is there something obvious I'm missing? the tests don't seem to setup anything special for other resources | 21:53 |
mgedmin | tvon, how did you add it? | 21:54 |
mgedmin | <browser:resource /> ? | 21:54 |
ignas | well if you would transferr the error message to us via your psychyc link ;) | 21:54 |
mgedmin | or <browser:page for="...ISchoolBellApplication />? | 21:54 |
mgedmin | resource won't work | 21:54 |
tvon | mgedmin: yeah, same as the javascript/png's and whatnot | 21:54 |
tvon | resource... ah | 21:54 |
mgedmin | because it puts the icon to /@@/favicon.ico | 21:54 |
mgedmin | IE wants /favicon.ico | 21:55 |
tvon | moz finds it fine, I figurd there was no good way to satisfy IE | 21:55 |
* mgedmin all for a generic favicon.ico view for ISite that would try to look up a resource named 'favicon.ico' and return it | 21:55 | |
tvon | (added the appropriate line to view_macros for non-ie browsers) | 21:55 |
* mgedmin all for pushing this view into zope 3 core | 21:55 | |
tvon | that would be good | 21:56 |
SteveA | i did add a browser:icon directive to launchpad | 21:56 |
SteveA | or was it browser:favicon | 21:56 |
SteveA | it is launchpad-specific though | 21:56 |
* tvon wonders when launchpad will be unleahsed to the masses | 21:57 | |
tvon | ;) | 21:57 |
tvon | mgedmin: page will work? for ie? or are you just saying there is no way to make it work properly for ie? | 21:58 |
mgedmin | tvon, page will work -- if you use the standalone server where / is ISchoolBellApplication | 21:59 |
mgedmin | if you use Zope 3, just add an Image object named 'favicon.ico' to the root folder | 21:59 |
tvon | mgedmin: soo, should I not add a favicon.ico with a link tag in view_macros? | 22:00 |
mgedmin | tvon, I think you should | 22:02 |
tvon | ah, okay | 22:02 |
mgedmin | but that's completely orthogonal | 22:02 |
mgedmin | <link> for firefox etc. | 22:02 |
mgedmin | hardcoded url for ie | 22:02 |
*** ignas has quit IRC | 22:26 | |
tvon | Okay, I'm entirely confused. /@@/favicon.ico seems to work, though I did nothing for it.. aside from adding the resource. is there some automagic I'm missing? | 22:36 |
tvon | actually all the resources work like that | 22:37 |
mgedmin | tvon, ie will never look for /@@/favicon.ico | 22:37 |
mgedmin | ie will always look for /favicon.ico | 22:37 |
tvon | mgedmin: I understand that | 22:37 |
mgedmin | then I don't understand what problem you are trying to solve | 22:38 |
mgedmin | certainly all resources are automagically available at /@@/resourcename | 22:38 |
mgedmin | that's what they're for | 22:38 |
tvon | initially I was trying to solve the traversal errors kicking out of the tests with the resource | 22:38 |
tvon | oh, that I was not aware of, i tought they required ++resource++foo | 22:38 |
mgedmin | and the traversal errors were for what url, precisely? | 22:38 |
mgedmin | foo/@@/resourcename works if and only if 'foo' is a site | 22:39 |
mgedmin | foo/++resource++resourcename works always | 22:39 |
tvon | one sec, pasting them online | 22:39 |
mgedmin | also, in a TALES expression context/++resource++resourcename is evaluated | 22:39 |
tvon | test failures are here: http://paste.plone.org/1259 | 22:39 |
mgedmin | and becomes absolute_path_of_nearest_site/@@/resourcename in the output | 22:39 |
tvon | ah, okay | 22:40 |
mgedmin | TraversalError: (<schoolbell.app.app.SchoolBellApplication object at | 22:40 |
mgedmin | 0xb6e0906c>, 'favicon.ico') | 22:40 |
mgedmin | something is looking for /favicon.ico | 22:40 |
tvon | ahh | 22:40 |
mgedmin | not /@@/favicon.ico | 22:40 |
mgedmin | try /@@/nonexistentresource and you will get a different TraversalErrir | 22:40 |
tvon | Why would something be looking for /favicon.ico now? | 22:41 |
mgedmin | is that a functional test? | 22:42 |
tvon | I added this line to view_macros: <link rel="icon" type="image/png" href="favicon.ico" tal:attributes="href context/++resource++favicon.ico"/> | 22:42 |
tvon | mgedmin: no, ftests pass | 22:42 |
tvon | <resource name="favicon.ico" file="resources/favicon.ico" layer=".skin.ISchoolBellLayer" /> | 22:42 |
tvon | in configure.zcml | 22:42 |
* mgedmin doublechecks | 22:42 | |
mgedmin | some page template is broken, I guess | 22:42 |
mgedmin | I'd like to see the <link> element you added to view macros pt | 22:44 |
tvon | http://paste.plone.org/1261 | 22:44 |
tvon | thats the svn diff from browser/ | 22:44 |
tvon | and in practice it seems to work fine | 22:44 |
mgedmin | and this diff breaks unit tests? | 22:44 |
mgedmin | weird | 22:44 |
tvon | yeah | 22:44 |
tvon | well at least my confusion wasnt completely unfounded | 22:45 |
mgedmin | we have some funky stubbing for the ++resource++ directive in unit tests | 22:45 |
tvon | ah | 22:45 |
mgedmin | it could be our unit test setup that is broken | 22:45 |
* tvon pokes around | 22:46 | |
mgedmin | tvon, sb.app.browser.tests.setup | 22:46 |
mgedmin | def setUp | 22:46 |
mgedmin | grep for 'layout.css' | 22:46 |
tvon | ah, score | 22:47 |
mgedmin | try adding 'favicon.ico' to the list and try again | 22:47 |
mgedmin | weird error, though | 22:47 |
tvon | passes | 22:47 |
tvon | okay, thanks | 22:47 |
mgedmin | I guess something inside Zope 3 converts a ComponentLookupError into a TraversalError? | 22:47 |
tvon | Now, on making this work with IE, were you saing that to do that we would need to add an image object to the app object? | 22:47 |
tvon | not that I'm overly concerend with IE,I mostly just got tired of the 404's on favicon.. but we should fix it at some point | 22:48 |
mgedmin | forget what I said | 22:49 |
tvon | okay | 22:49 |
mgedmin | I misunderstood the problem | 22:49 |
tvon | ah | 22:49 |
mgedmin | I'm not familiar with ie and favicons | 22:49 |
mgedmin | I wouldn't be surprised if IE ignored the <link> element and always performed a GET for /favicon.ico | 22:49 |
tvon | I know it looks in / and I'm pretty sure it doesn't support the link method. | 22:49 |
tvon | yeah, I'm pretty sure that's what it does | 22:49 |
mgedmin | in that case my statement about <resource> being insufficient still stands | 22:49 |
tvon | okay | 22:50 |
mgedmin | and you will need to register a browser view named 'favicon.ico' for the root object | 22:50 |
alga | wow, smart | 22:50 |
mgedmin | or -- if there's already a traverser registered for ISchoolBellApplication -- just change the traverser | 22:50 |
mgedmin | if name == 'favicon.ico': | 22:51 |
tvon | oh yeah | 22:51 |
mgedmin | resource = traverse(self.context, '@@/favicon.ico') | 22:51 |
mgedmin | view = zapi.getMultiAdapter(resource, 'index.html' uhh | 22:51 |
mgedmin | ehh | 22:51 |
* mgedmin handwaves energetically | 22:52 | |
tvon | heh | 22:52 |
mgedmin | in short, just return the view for the resource object | 22:52 |
mgedmin | sort of what we do in ICalendarOwner traverser for 'calendar.ics' | 22:52 |
mgedmin | it looks up the view named 'calendar.ics' for a subobject of self.context and returns that | 22:52 |
*** bskahan has quit IRC | 23:18 | |
*** tvon has quit IRC | 23:27 | |
*** FarcePest has joined #schooltool | 23:43 | |
*** SteveA has quit IRC | 23:44 | |
*** Aiste has quit IRC | 23:44 | |
FarcePest | so schoolbell doesn't seem to support the group hierarchy that schooltool does. is that going to change at some point? | 23:46 |
mgedmin | that was an intentional change | 23:47 |
FarcePest | is schooltool going to continue to support it? | 23:47 |
mgedmin | we collectively decided that group hierarchy is an unnecessary complication that will only confuse users | 23:47 |
FarcePest | ah ok | 23:47 |
mgedmin | I personally don't have a strong opinion one way or another | 23:47 |
mgedmin | I'm not sure about future schooltool versions | 23:48 |
mgedmin | ask th1a when he becomes available | 23:48 |
*** tvon has joined #schooltool | 23:52 | |
*** mgedmin has quit IRC | 23:54 | |
FarcePest | is there a way with the standard schoolbell setup (i.e. make run) to use the zope3 zmi? I am trying to get LDAP authentication working and need to add an LDAPPrincipalSource somehow | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!