*** d2m has quit IRC | 00:01 | |
dennis__ | i will use your idea for the main navigation (which would anyway be registered for="*") | 00:01 |
---|---|---|
dennis__ | thanks :) | 00:01 |
*** grahal has quit IRC | 00:05 | |
*** derek|office is now known as derek_richardson | 00:12 | |
*** RaFromBRC|lunch has quit IRC | 00:20 | |
*** timte has quit IRC | 00:27 | |
dennis__ | what is the zmi_views / zmi_actions equivalent to populate a menu of items which can be added to the current context? | 00:30 |
*** whitmo has joined #zope3-dev | 00:30 | |
*** deo has quit IRC | 00:32 | |
*** whitmo has quit IRC | 00:32 | |
*** whitmo has joined #zope3-dev | 00:33 | |
*** whit has quit IRC | 00:35 | |
*** whitmo is now known as whit | 00:35 | |
*** RaFromBRC has joined #zope3-dev | 00:36 | |
*** nerdalert has left #zope3-dev | 00:36 | |
cr3 | what's the difference between using zope.i18nmessageid and zope.app.i18n? | 00:36 |
cr3 | I think the former allows you to specify your own domain for _ and the other only allows the 'zope' domain | 00:40 |
*** schwendinger_ has quit IRC | 00:45 | |
*** benji has quit IRC | 00:47 | |
*** jrc2e_ has joined #zope3-dev | 00:53 | |
*** cr3 has quit IRC | 00:58 | |
*** mrevoir has joined #zope3-dev | 01:02 | |
*** derek_richardson is now known as derek|office | 01:05 | |
*** bigkevmcd has quit IRC | 01:08 | |
*** jrc2e has quit IRC | 01:10 | |
*** sm-afk is now known as sm | 01:20 | |
*** sm has quit IRC | 01:23 | |
*** sm has joined #zope3-dev | 01:24 | |
*** pelle_ has quit IRC | 01:27 | |
*** dunny has quit IRC | 01:29 | |
*** yota has quit IRC | 02:02 | |
*** jfroche has quit IRC | 02:04 | |
*** reco has quit IRC | 02:10 | |
*** whit is now known as whit|dinner | 02:25 | |
dennis__ | in other words, how do I | 02:25 |
dennis__ | oops wrong channel :) | 02:25 |
*** grahal has joined #zope3-dev | 02:27 | |
*** grahal has quit IRC | 02:28 | |
*** mrevoir has quit IRC | 02:36 | |
*** pcardune_ has joined #zope3-dev | 02:38 | |
*** dunny has joined #zope3-dev | 02:44 | |
dennis__ | what is the easiest way to change the height for a given input widget which is generated with Fields( some_schema ) ? being able to do something like form_fields['contents'].height = 10 would be nice | 02:50 |
*** cr3 has joined #zope3-dev | 02:58 | |
*** natea|dinner is now known as natea|sleepy | 03:04 | |
*** natea|sleepy is now known as natea|zZz | 03:23 | |
*** natea|zZz has quit IRC | 03:30 | |
*** jrc2e_ has quit IRC | 03:53 | |
*** mrevoir has joined #zope3-dev | 04:13 | |
*** reco has joined #zope3-dev | 04:28 | |
*** benji has joined #zope3-dev | 04:32 | |
cr3 | is there a way to prevent having to specify the i18n:domain in each view? | 05:03 |
*** stub has joined #zope3-dev | 05:09 | |
*** alecm has quit IRC | 05:14 | |
*** RaFromBRC has quit IRC | 05:19 | |
*** viorc has joined #zope3-dev | 05:23 | |
*** Cripps has joined #zope3-dev | 05:33 | |
cr3 | ok, so let me rephrase that then: is it possible to change the i18n default domain? | 05:43 |
cr3 | I think it would be sane to expect the i18n_domain specified in the configure.zcml file defining a particular view to have some effect, but each view still seems to need to repeat the i18n:domain | 05:45 |
*** pcardune_ has quit IRC | 05:46 | |
*** srichter has joined #zope3-dev | 05:47 | |
*** CrippsFX has quit IRC | 05:50 | |
cr3 | I didn't notice any difference between specifying i18n_domain or not in configure.zcml files, is it a deprecated feature? | 05:57 |
cr3 | I guess everyone working on zope is from europe, g'night then... | 05:59 |
*** roym` has quit IRC | 06:19 | |
*** jrc2e has joined #zope3-dev | 06:25 | |
*** niemeyer has quit IRC | 06:31 | |
*** reco has quit IRC | 06:35 | |
*** reco has joined #zope3-dev | 06:37 | |
*** Jell-O-Fishi has joined #zope3-dev | 07:06 | |
*** baijum has joined #zope3-dev | 07:21 | |
*** alecm has joined #zope3-dev | 07:42 | |
*** marianom has left #zope3-dev | 07:45 | |
*** alecm has quit IRC | 08:09 | |
*** sorin has joined #zope3-dev | 08:19 | |
*** sorin is now known as sorindregan | 08:19 | |
*** mrevoir has quit IRC | 08:26 | |
*** sm is now known as sm-afk | 08:26 | |
*** reco has quit IRC | 08:36 | |
*** cr3 has quit IRC | 08:43 | |
*** timte has joined #zope3-dev | 08:46 | |
*** d2m has joined #zope3-dev | 08:53 | |
*** b52GM has joined #zope3-dev | 08:54 | |
*** baijum has quit IRC | 09:07 | |
*** baijum has joined #zope3-dev | 09:08 | |
*** b52Centos has quit IRC | 09:10 | |
*** ghendi has joined #zope3-dev | 09:28 | |
*** projekt01 has joined #zope3-dev | 09:56 | |
*** projekt01 has joined #zope3-dev | 09:57 | |
*** BjornT has joined #zope3-dev | 10:06 | |
*** Aswin_S has joined #zope3-dev | 10:09 | |
*** Jell-O-Fishi has quit IRC | 10:11 | |
*** Aswin_S has quit IRC | 10:17 | |
*** tarek has quit IRC | 10:28 | |
*** MJ has joined #zope3-dev | 10:28 | |
*** BjornT_ has joined #zope3-dev | 10:32 | |
romanofski | moin | 10:35 |
*** yota has joined #zope3-dev | 10:35 | |
*** tarek has joined #zope3-dev | 10:38 | |
*** harobed has joined #zope3-dev | 10:49 | |
*** schwendinger has joined #zope3-dev | 10:51 | |
*** schwendinger has quit IRC | 10:54 | |
*** bigkevmcd has joined #zope3-dev | 10:57 | |
*** viorc has quit IRC | 10:57 | |
*** bigkev has joined #zope3-dev | 10:59 | |
*** schwendinger has joined #zope3-dev | 11:17 | |
*** stub has quit IRC | 11:32 | |
*** __gotcha has joined #zope3-dev | 12:02 | |
*** pcardune has joined #zope3-dev | 12:21 | |
*** viorc has joined #zope3-dev | 12:35 | |
*** mkerrin has joined #zope3-dev | 12:48 | |
*** MJ is now known as MJ|out | 12:49 | |
*** viorc has quit IRC | 12:58 | |
dennis__ | what is a good approach to store newsitems, such that you want to retrieve them by date (ie they should be kept in some predictable order). My newsitemcontainer is a btree, but the order of insertion is not always the order of display. Do I really have to fetch all items into a list and do my own sorting? wouldn't scale that well ? | 13:02 |
bigkevmcd | catalog query them, and order by the date | 13:04 |
dennis__ | i guess that works, but isn't that a bit overkill for the purpose? | 13:05 |
bigkevmcd | not really | 13:06 |
bigkevmcd | it scales | 13:06 |
Cripps | good morning folk. | 13:08 |
dennis__ | hi cripps | 13:09 |
Cripps | how's it going dennis__ ? | 13:09 |
dennis__ | making progress slowly :) | 13:09 |
Cripps | I hear ya about that slowly part :) | 13:09 |
dennis__ | bigkevmcd would i use a field index in the catalog or do i have to roll my own? | 13:10 |
Cripps | yish. Today I have to write a script to turn my sql table dump into a bunch of Computer objects (custom object) .... | 13:10 |
*** lisppaste6 has quit IRC | 13:11 | |
Cripps | okay, coffee time. | 13:18 |
*** lisppaste6 has joined #zope3-dev | 13:19 | |
dennis__ | cripps it is quite easy to do something like that, just make sure you call the notify for objectadded, so that any indexes etc get updated | 13:25 |
dennis__ | i have used it to import existing content | 13:26 |
*** ignas has joined #zope3-dev | 13:27 | |
Cripps | dennis__: I'm doing it externally and adding them to my ZODB under a folder meant for those objects ... it should be easy ... I just don't want to do it :P | 13:27 |
dennis__ | yeah i did it externally (from the debug shell, call some method on your folder which loads the data from a file or whatever) | 13:27 |
Cripps | yep. | 13:27 |
dennis__ | or use generations, and import the data | 13:28 |
Cripps | well, I've *mostly* parsed the data and put it into a file that's easier to get the individual elements, now I just have to run split() and create the new objects with the appropriate elements from each row. | 13:29 |
Cripps | the only unfortunate part is that the sql table I dumped has incomplete entries :/ | 13:30 |
*** schwendinger has quit IRC | 13:32 | |
*** rocky has quit IRC | 13:35 | |
*** dunny has quit IRC | 13:36 | |
*** dokai has joined #zope3-dev | 13:37 | |
*** stub has joined #zope3-dev | 13:41 | |
*** MJ|out is now known as MJ|lunch | 13:46 | |
*** b52laptop has joined #zope3-dev | 13:57 | |
*** alga has joined #zope3-dev | 14:07 | |
*** Aswin_S has joined #Zope3-dev | 14:07 | |
*** benji has quit IRC | 14:11 | |
*** rocky has joined #zope3-dev | 14:16 | |
ignas | is it just me or is zope.html egg broken? | 14:18 |
*** Jell-O-Fishi has joined #zope3-dev | 14:20 | |
ignas | the newest one at least | 14:20 |
*** __gotcha has quit IRC | 14:24 | |
*** schwendinger has joined #zope3-dev | 14:24 | |
*** Aswin_S has quit IRC | 14:26 | |
*** Aswin_S has joined #Zope3-dev | 14:26 | |
*** Aiste has joined #zope3-dev | 14:30 | |
*** Aswin_S has quit IRC | 14:34 | |
*** niemeyer has joined #zope3-dev | 14:37 | |
*** jrc2e has joined #zope3-dev | 14:40 | |
*** MJ|lunch is now known as MJ | 14:42 | |
*** ChanServ sets mode: +o srichter | 14:45 | |
*** povbot has joined #zope3-dev | 14:52 | |
*** CSWookie has quit IRC | 14:53 | |
*** alga has quit IRC | 14:53 | |
*** CSWookie has joined #zope3-dev | 14:53 | |
*** srichter has quit IRC | 14:54 | |
*** srichter has joined #zope3-dev | 14:54 | |
dennis__ | (bigkevmcd) i have now implemented a catalog for the news article timestamps, but this still only gives me all articles within a certain range, but not individually ordered by their timestamps. Am I missing something about this behaviour, since now, if I wanted the 10 most recent entries, I'd need to instantiate all objects just to sort them, just to be able to select the 10 most recent | 14:54 |
*** ChanServ sets mode: +o srichter | 14:54 | |
*** BjornT_ has quit IRC | 14:55 | |
*** derek|office has quit IRC | 14:56 | |
*** srichter has quit IRC | 14:56 | |
*** srichter has joined #zope3-dev | 14:57 | |
*** ChanServ sets mode: +o srichter | 14:57 | |
*** ghendi has joined #zope3-dev | 14:57 | |
*** sorindregan has joined #zope3-dev | 14:57 | |
*** whit|dinner has quit IRC | 14:57 | |
*** stub has quit IRC | 14:57 | |
*** BjornT_ has joined #zope3-dev | 14:57 | |
*** tarek_ has joined #zope3-dev | 14:58 | |
*** whit|dinner has joined #zope3-dev | 14:58 | |
*** derek|office has joined #zope3-dev | 14:58 | |
*** philiKON has joined #zope3-dev | 14:59 | |
*** alga has joined #zope3-dev | 15:01 | |
bigkevmcd | dennis__: you should be able to sort too | 15:02 |
dennis__ | catalog.apply returns an IFSet, with all id's in order (which seems to be order of creation) | 15:03 |
*** tarek has quit IRC | 15:05 | |
*** thruflo_ has joined #zope3-dev | 15:07 | |
*** pcardune has quit IRC | 15:10 | |
dennis__ | anyone? how, given a container with objects, retrieve the list of 10 objects with the highest timestamps, in a way that scales also with many objects in the list? the catalog works for narrowing it down to a time interval, but does not return the intids in order which means I still need to instantiate all objects to filter out the 10 i want) | 15:14 |
*** philiKON has left #zope3-dev | 15:20 | |
*** philiKON has joined #zope3-dev | 15:20 | |
*** philiKON has left #zope3-dev | 15:20 | |
*** philiKON has joined #zope3-dev | 15:20 | |
*** benji has joined #zope3-dev | 15:24 | |
Cripps | morning Phil, morning benji | 15:28 |
*** pcardune has joined #zope3-dev | 15:31 | |
*** BjornT_ has quit IRC | 15:41 | |
*** alga has quit IRC | 15:56 | |
*** thruflo has joined #zope3-dev | 16:05 | |
*** BjornT_ has joined #zope3-dev | 16:09 | |
*** thruflo_ has quit IRC | 16:13 | |
*** jsadjohnson has joined #zope3-dev | 16:20 | |
*** whit|dinner is now known as whit | 16:21 | |
*** reco has joined #zope3-dev | 16:29 | |
*** baijum has quit IRC | 16:33 | |
*** xbeanx has joined #zope3-dev | 16:38 | |
*** benji has quit IRC | 16:39 | |
*** meatballhat has joined #zope3-dev | 16:43 | |
*** benji has joined #zope3-dev | 16:44 | |
projekt01 | Theuni_, my Zope3 trunk says, ImportError: No module named zodbcode.patch | 16:51 |
projekt01 | Theuni, do you know if there is a missing svn:external? | 16:52 |
*** natea|zZz has joined #zope3-dev | 16:54 | |
*** natea|zZz is now known as natea|lightningt | 16:55 | |
philiKON | projekt01: svn up | 17:02 |
projekt01 | philiKON, yes, since then I have that problem | 17:03 |
philiKON | do it again | 17:05 |
philiKON | also, who cares about the zope 3 trunk? :) | 17:05 |
d2m | me | 17:05 |
philiKON | projekt01: hmm, the external is there but it's not being pulled in | 17:06 |
philiKON | wait, it's there | 17:06 |
*** natea|lightningt has quit IRC | 17:06 | |
philiKON | everything seems to be fine with my checkout | 17:06 |
d2m | projekt01: do you cheout from the mirror ? | 17:07 |
projekt01 | d2m, no | 17:07 |
*** natea|lightningt has joined #zope3-dev | 17:08 | |
d2m | well, the problem occured first on monday but was corrected by Theuni_ | 17:09 |
projekt01 | Argh, I'm not sure but I get sometimes a "Skipped ..\Zope3\src" if I update from a repos. | 17:09 |
d2m | maybe a later checkin set incorrect externals ? | 17:09 |
philiKON | it works for me | 17:09 |
projekt01 | Does anybody know what "Skipped" means? i tried different SVN clients and if the problem is there each of them are just telling that some externals get skipped. | 17:10 |
philiKON | perhaps i shouldn't be asking this, but what do you guys want with the zope 3 trunk checkout anyways? it's not writeable anymore | 17:10 |
projekt01 | what, why? | 17:10 |
d2m | i'm using it until i understand buildout and eggs | 17:10 |
philiKON | projekt01: you can't checkout into the externals | 17:11 |
philiKON | they're read-only | 17:11 |
d2m | which will take some time... | 17:11 |
philiKON | d2m: eggs are very simple | 17:11 |
d2m | i know, but its a mess | 17:11 |
philiKON | um, how so? | 17:11 |
d2m | buildout is not easy | 17:11 |
projekt01 | philiKON, is there a proposal "which I missed" for that or do some guys just messup without our well defined development process? | 17:11 |
philiKON | d2m: it's easier than it appears, but i give you that: it's certainly something that takes getting used to | 17:12 |
philiKON | d2m: but nobody says you have to use buildout | 17:12 |
projekt01 | philiKON, I can commit to svn:externals, that's probably just a problem with your SVN client | 17:13 |
d2m | i don't get it, sorry -- why should i work from eggs ? | 17:13 |
philiKON | projekt01: i'd be surprised if you can commit to svn:// externals | 17:13 |
philiKON | d2m: nobody says you have to | 17:13 |
philiKON | d2m: but there are benefits | 17:13 |
d2m | ah, ok - thought you just sais that the way to do it | 17:13 |
philiKON | though i anticipate we'll be using entrypoints and other things in the future so that eggs will be required, basically | 17:14 |
projekt01 | philiKON, write a proposal so everybody can follow you!!! | 17:15 |
d2m | i haven't seen a single page of docs describing the 'new' way | 17:15 |
philiKON | d2m: btw, if you have my 2nd edition, there's a section on eggs in the last chapter | 17:15 |
philiKON | projekt01: the proposal is very old: http://wiki.zope.org/zope3/EggificationOfZopePackages | 17:16 |
philiKON | along with http://wiki.zope.org/zope3/LoadingConfigurationFromTheZopeAppEgg | 17:17 |
philiKON | d2m: yeah, i was a bit baffled by that too | 17:17 |
*** ghendi has quit IRC | 17:17 | |
philiKON | d2m: i was expecting something on http://wiki.zope.org/zope3/MakingARelease | 17:18 |
philiKON | but since it wasn't there, i've decided that i'll add something myself | 17:18 |
philiKON | just haven't gotten around to it | 17:18 |
projekt01 | I don't talk about eggs, I talk about not having a working trunk and not testing the trunk at all. | 17:18 |
philiKON | the trunk works for me | 17:18 |
d2m | lets say, its a bit unreliable atm | 17:19 |
philiKON | well, Theuni_ is moving things around | 17:19 |
philiKON | which, when dealing with externals, can't be atomic in svn | 17:19 |
philiKON | afaik | 17:19 |
d2m | moving packages around and not updating externals at the same time mekes it break | 17:19 |
philiKON | right, for about 3 minutes | 17:20 |
d2m | took 3 hours on monday | 17:20 |
d2m | anyway | 17:20 |
philiKON | you're welcome to help out when problems arise :) | 17:20 |
projekt01 | philiKON, no problem, My concerns are just about your comment "Who is using the trunk anyway" | 17:20 |
philiKON | well, that comment was meant half-jokingly. the other half being sincere. i will certainly discourage using the monolothic checkout | 17:21 |
projekt01 | philiKON, d2m, I have a SVN client problem, it has probably nothing to do with the trunk. | 17:21 |
philiKON | especially since it has no value for changes anymore | 17:21 |
projekt01 | philiKON, no problem, but this is not a joke I like ;-) | 17:21 |
philiKON | i don't recall offending you | 17:22 |
projekt01 | philiKON, in a long term, probably I agree, but we have 3 open projects and really need to work on that first till we can switch and builld and using eggs. | 17:23 |
projekt01 | I think changing to eggs should also support the deprecation period of one year. And not just a week or month. | 17:24 |
philiKON | we're talking about the trunk | 17:25 |
philiKON | that's always the latest and greatest development | 17:25 |
*** natea|lightningt has quit IRC | 17:25 | |
d2m | philiKON: maybe add a wikipage similar to MakingARelease --> GettingARelease ? | 17:25 |
philiKON | by definition | 17:25 |
philiKON | d2m: good idea | 17:25 |
d2m | there is the http://wiki.zope.org/zope3/SettingUpAZope3Sandbox doc, thats defacto instructions on how to get to zope3 | 17:26 |
philiKON | i think i'll sit down tonight and update those docs | 17:27 |
philiKON | i realize that there's been a communication deficit | 17:27 |
d2m | also in http://wiki.zope.org/zope3/ProjectStatus: Repository status: trunk is always open for new features | 17:28 |
projekt01 | philiKON, that whould be cool | 17:28 |
* philiKON afk | 17:29 | |
*** whit has quit IRC | 17:33 | |
*** whit has joined #zope3-dev | 17:33 | |
*** stub has joined #zope3-dev | 17:33 | |
*** natea|lightningt has joined #zope3-dev | 17:44 | |
*** alecm has joined #zope3-dev | 17:47 | |
*** BjornT_ has quit IRC | 17:51 | |
*** natea|lightningt is now known as natea|piktipi | 17:54 | |
*** afd__ has joined #zope3-dev | 17:58 | |
*** rocky is now known as rocky|away | 17:58 | |
*** mgedmin has joined #zope3-dev | 17:59 | |
*** jfroche has joined #zope3-dev | 18:01 | |
*** sm-afk is now known as sm | 18:04 | |
*** sorindregan has quit IRC | 18:08 | |
*** jfroche has quit IRC | 18:33 | |
*** Aiste has quit IRC | 18:34 | |
*** __gotcha has joined #zope3-dev | 18:35 | |
Cripps | I'm trying to use a python script to import info from an SQL dump and create Computer objects based on that info. I've done some reformatting to make the data easy to parse, but I am getting a "constraint not satisfied" error for a constraint that I didn't set. My code (including an example of one of the entries) is located here: http://www.pastebin.ca/540304 ... could somebody help me understand what is going on here? | 18:40 |
mgedmin | Cripps: can you paste your schema and the implementation of Computer? | 18:46 |
*** philiKON_ has joined #zope3-dev | 18:46 | |
Cripps | mgedmin: yep, just a moment. | 18:47 |
*** pelle_ has joined #zope3-dev | 18:47 | |
*** pcardune has quit IRC | 18:48 | |
Cripps | mgedmin: http://www.pastebin.ca/540320 | 18:49 |
mgedmin | a pity you're doing that from the interactive console | 18:52 |
mgedmin | seeing the line in your code that fails would be a tremendous help | 18:52 |
Cripps | mgedmin: how might I do this in *not* interactive shell mode? | 18:53 |
mgedmin | copy and paste the code into a Python script, then run it | 18:53 |
*** MJ has quit IRC | 18:53 | |
Cripps | k. | 18:53 |
mgedmin | hm | 18:54 |
mgedmin | does pdb's postmortem work when you get an exception in an interactive prompt? | 18:54 |
Cripps | m. THis might take a few minutes ... I have to dig back through the console session to figure out *exactly* what I did | 18:54 |
mgedmin | I wonder what's the name of the field that throws this exception | 18:55 |
*** philiKON has quit IRC | 18:55 | |
*** alecm has quit IRC | 18:55 | |
*** philiKON_ is now known as philiKON | 18:55 | |
Cripps | mgedmin: we'll figure out after I have that script written. | 18:55 |
philiKON | which exception? | 18:55 |
d2m | looks like you don't have the fields at the right place or fields are missinf | 18:55 |
Cripps | d2m: as in the wrong information is trying to be assigned to a field? | 18:56 |
mgedmin | philiKON: http://zope3.pov.lt/irclogs/%23zope3-dev.2007-06-05.log.html#t2007-06-05T18:40:30 | 18:57 |
philiKON | constriant not satisfied is pretty simple | 18:58 |
philiKON | it means that the custom constraint you specified returns False | 18:58 |
philiKON | Cripps: got my book? | 18:58 |
philiKON | (2nd ed.)? | 18:58 |
Cripps | philiKON: yessir. | 18:58 |
philiKON | open chapter 4 | 18:58 |
Cripps | philiKON: well, the funny thing is that my custom constraints shouldn't cause that error, because of the try/except statements ... | 18:59 |
philiKON | it talks about this in detail | 18:59 |
philiKON | the custom constraints will never see it | 18:59 |
philiKON | the field will raise ConstraintNotSatisfied if the custom constraint returns something False | 18:59 |
philiKON | hmm, your code at http://www.pastebin.ca/540320 looks ok, though | 19:00 |
Cripps | philiKON: true, but I've designed them to raise an error (i.e. NotAnIPAddress, or NotAMACAddress) .. .so python should catch that and execute the except ... | 19:00 |
philiKON | do those inherit from ValidationError? | 19:00 |
Cripps | yep. | 19:00 |
philiKON | hmm | 19:01 |
philiKON | weird | 19:01 |
Cripps | you're telling me. | 19:01 |
xbeanx | Probably user error... | 19:01 |
xbeanx | :P | 19:01 |
Cripps | xbeanx: no doubt ... now I just have to figure out which error (because I know which user) | 19:01 |
Cripps | ;) | 19:01 |
philiKON | ah, wait | 19:01 |
xbeanx | I'm sure its something simple | 19:01 |
philiKON | TextLines also have a "custom constraint" | 19:01 |
philiKON | that's hidden | 19:01 |
philiKON | a TextLine is actually a Text with a constraint=... | 19:02 |
philiKON | (something that shoudl be changed) | 19:02 |
xbeanx | interesting | 19:02 |
philiKON | perhaps one of your TextLine values constains a \n | 19:02 |
Cripps | hm. | 19:02 |
Cripps | I can check for that. | 19:02 |
*** Newfie2007 has joined #zope3-dev | 19:03 | |
*** projekt01 has left #zope3-dev | 19:04 | |
d2m | has one used RAMCache already ? i am searching for the bit that returns (gets/sets) the cached value from/in the cache when the object is requested | 19:10 |
xbeanx | It does | 19:12 |
xbeanx | Cripps: I saw in your pastebin :) | 19:12 |
*** jrc2e has quit IRC | 19:21 | |
*** jrc2e has joined #zope3-dev | 19:26 | |
*** BjornT has quit IRC | 19:34 | |
*** alecm has joined #zope3-dev | 19:39 | |
*** meatballhat has quit IRC | 19:44 | |
*** meatballhat_ has joined #zope3-dev | 19:44 | |
*** jrc2e has quit IRC | 19:52 | |
*** iam-vivek has joined #zope3-dev | 19:52 | |
*** harobed has quit IRC | 19:52 | |
*** meatballhat_ is now known as meatballhat | 19:55 | |
*** jrc2e has joined #zope3-dev | 19:55 | |
*** ignas has quit IRC | 19:58 | |
*** ignas has joined #zope3-dev | 19:58 | |
Cripps | iam-vivek: is there any reason you didn't talk to me out here? | 20:00 |
iam-vivek | no | 20:00 |
*** iam-vivek has quit IRC | 20:01 | |
Cripps | well ... that was weird. | 20:01 |
*** deo has joined #zope3-dev | 20:03 | |
*** lurker_ has joined #zope3-dev | 20:08 | |
*** itsrocky has joined #zope3-dev | 20:10 | |
*** rocky|away is now known as rocky | 20:15 | |
Cripps | okay, I've got everything in my script except for committing my new COmputerFolder to the ZODB ... how would I do that? | 20:17 |
*** jfroche has joined #zope3-dev | 20:19 | |
dennis__ | root['computerfolder'] = myshinynewfolder ? | 20:22 |
Cripps | dennis__: from within a script? | 20:22 |
dennis__ | cripps run zopectl, debug. from myscript import myfunction. then you can use the zodb | 20:23 |
dennis__ | don't forget to commit | 20:23 |
dennis__ | alternatively read the zodb docs to use it standalone, but that's more work | 20:24 |
Cripps | yeah ... but it's probably better :/ | 20:24 |
Cripps | k, well, I'll go off to read the docs then. | 20:24 |
*** jbb666 has joined #zope3-dev | 20:26 | |
*** RaFromBRC has joined #zope3-dev | 20:26 | |
*** jfroche has quit IRC | 20:34 | |
*** stub has quit IRC | 20:40 | |
*** Henri__ has joined #zope3-dev | 20:43 | |
*** ignas has quit IRC | 20:48 | |
*** pelle_ has quit IRC | 20:51 | |
*** pelle_ has joined #zope3-dev | 20:55 | |
*** itsrocky has quit IRC | 21:02 | |
*** schwendinger has quit IRC | 21:08 | |
Cripps | alright ... I'm using the zope debug shell, and I imported the script, but I now get this error: root[u'identifier'] = list_of_values <newline> NameError: global name 'root' is not defined | 21:19 |
*** jfroche has joined #zope3-dev | 21:21 | |
*** mkerrin has quit IRC | 21:24 | |
mgedmin | >>> root = debugger.root() | 21:29 |
*** thruflo has left #zope3-dev | 21:29 | |
mgedmin | IIRC | 21:29 |
mgedmin | don't forget >>> import transaction; transaction.commit() at the end | 21:30 |
Cripps | mgedmin: that's about the only thing I DIDN't forget ;) | 21:31 |
*** Henri__ has joined #zope3-dev | 21:32 | |
Cripps | k, I'll try root = debugger.root() ... do I do that within the function I import, or in the debugger console? | 21:32 |
mgedmin | you can do that in the debugger console | 21:32 |
Cripps | aiight. | 21:35 |
Cripps | mgedmin: still got the same error message. | 21:35 |
mgedmin | what error message? | 21:37 |
mgedmin | the NameError? | 21:37 |
dennis__ | can I delete an existing database schema (in generations?). I deleted my entire site, and re-added with generation 0, but somehow it remembered the previous generation was already 1 | 21:38 |
*** whit has quit IRC | 21:38 | |
Cripps | mgedmin: yeah, the name error | 21:39 |
mgedmin | either you're doing something obviously wrong, or I don't understand your problem | 21:39 |
mgedmin | do you type >>> root = ... | 21:39 |
mgedmin | and then call your function defined in another module, and expect it to find a variable named 'root'? | 21:40 |
mgedmin | Python doesn't work that way | 21:40 |
mgedmin | every module has a different namespace | 21:40 |
mgedmin | pass the root to your function as an argument | 21:40 |
Cripps | mgedmin: why didn't I think of that? | 21:40 |
* Cripps is a dumbass | 21:40 | |
Cripps | :P | 21:40 |
*** whit has joined #zope3-dev | 21:41 | |
*** jfroche has quit IRC | 21:42 | |
dennis__ | mgedmin just read your blog about generations .. do you happen to know how to "reset" this without needing a whole new instance? | 21:42 |
mgedmin | I knew once | 21:43 |
dennis__ | hah :) | 21:43 |
mgedmin | I forgot | 21:43 |
mgedmin | look at the source code | 21:43 |
Cripps | mgedmin: worked beautifully. Thanks. | 21:43 |
mgedmin | the generation numbers are stored in a dict somewhere | 21:43 |
mgedmin | in the zodb root dict, right next to the application object | 21:44 |
mgedmin | any_persistent_obj._p_jar.root()['something probably involving generations'] | 21:44 |
dennis__ | del root._p_jar.root()['zope.app.generations']['myschema'] seemed to have done the trick | 21:46 |
dennis__ | i should write that down :) | 21:46 |
*** meatballhat has left #zope3-dev | 21:54 | |
mgedmin | I have a 'debug.py' right next to bin/debugzope | 21:54 |
mgedmin | with lots of ugly dirty hacks like that that make my life easier | 21:55 |
mgedmin | first thing I do after running debugzope is 'import debug' | 21:55 |
mgedmin | (and first thing it does is import readline for me) | 21:55 |
*** pandres has joined #zope3-dev | 22:02 | |
*** rocky is now known as rocky|away | 22:20 | |
*** Aiste has joined #zope3-dev | 22:21 | |
*** mgedmin has quit IRC | 22:22 | |
*** Henri__ has left #zope3-dev | 22:22 | |
*** nerdalert has joined #zope3-dev | 22:23 | |
*** dunny has joined #zope3-dev | 22:24 | |
*** afd__ has quit IRC | 22:31 | |
*** schwendinger has joined #zope3-dev | 22:36 | |
*** Newfie2007 has quit IRC | 22:56 | |
*** ktwilight has quit IRC | 22:59 | |
*** __gotcha has quit IRC | 23:01 | |
*** ktwilight has joined #zope3-dev | 23:07 | |
*** ktwilight has quit IRC | 23:12 | |
*** jfroche has joined #zope3-dev | 23:12 | |
*** ktwilight has joined #zope3-dev | 23:14 | |
*** dobee has joined #zope3-dev | 23:26 | |
*** jfroche has quit IRC | 23:42 | |
*** jfroche_ has joined #zope3-dev | 23:44 | |
*** schwendinger_ has joined #zope3-dev | 23:45 | |
*** dobee has quit IRC | 23:52 | |
*** grahal has quit IRC | 23:54 | |
*** dobee has joined #zope3-dev | 23:54 | |
*** d2m has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!