| *** digitalmortician has joined #zope | 00:06 | |
| *** digitalmortician has quit IRC | 00:07 | |
| *** TomBlockley has joined #zope | 00:10 | |
| *** J1m_ has quit IRC | 00:18 | |
| *** ajsmith has quit IRC | 00:24 | |
| *** TomBlockley has quit IRC | 00:34 | |
| *** davisagli has quit IRC | 00:36 | |
| *** davisagli has joined #zope | 00:37 | |
| *** RaceCondition has quit IRC | 01:06 | |
| *** davisagli has quit IRC | 01:12 | |
| *** davisagli has joined #zope | 01:13 | |
| *** davisagli has quit IRC | 01:21 | |
| *** davisagli has joined #zope | 01:22 | |
| *** m8 has quit IRC | 01:48 | |
| *** Arfrever has quit IRC | 02:05 | |
| *** zagy has quit IRC | 02:11 | |
| *** MrTango has quit IRC | 02:43 | |
| *** zagy has joined #zope | 03:03 | |
| *** sm_ has quit IRC | 03:10 | |
| *** Spanktar has quit IRC | 03:44 | |
| *** daMaestro has left #zope | 03:49 | |
| *** alga has quit IRC | 04:02 | |
| planetzopebot | Zope Z SQL Method returns empty column name for @@IDENTITY (active questions tagged zope - Stack Overflow) http://stackoverflow.com/questions/6920590/zope-z-sql-method-returns-empty-column-name-for-identity | 05:09 |
|---|---|---|
| *** Spanktar has joined #zope | 05:32 | |
| *** davisagli has quit IRC | 05:55 | |
| *** davisagli has joined #zope | 05:55 | |
| *** Spanktar has quit IRC | 05:55 | |
| *** davisagli has quit IRC | 05:56 | |
| *** davisagli has joined #zope | 05:57 | |
| *** Spanktar has joined #zope | 06:15 | |
| *** Spanktar has quit IRC | 06:17 | |
| *** davisagli has quit IRC | 06:56 | |
| *** davisagli has joined #zope | 06:57 | |
| *** zagy has quit IRC | 07:29 | |
| *** zagy has joined #zope | 07:29 | |
| *** srichter has quit IRC | 07:38 | |
| *** srichter has joined #zope | 07:39 | |
| *** redir is now known as redir__ | 08:53 | |
| *** __mac__ has joined #zope | 09:01 | |
| *** sunew has joined #zope | 09:03 | |
| *** agroszer has joined #zope | 09:31 | |
| *** Wu has joined #zope | 09:49 | |
| *** J1m_ has joined #zope | 09:49 | |
| *** planetzopebot has quit IRC | 10:08 | |
| *** planetzopebot has joined #zope | 10:08 | |
| *** sunew has quit IRC | 10:08 | |
| *** goschtl has joined #zope | 10:10 | |
| *** sunew has joined #zope | 10:21 | |
| *** alga has joined #zope | 10:35 | |
| *** ccomb has joined #zope | 10:38 | |
| *** avoinea has joined #zope | 10:42 | |
| *** eperez has joined #zope | 10:49 | |
| *** TomBlockley has joined #zope | 10:50 | |
| *** Wu has quit IRC | 10:51 | |
| *** J1m_ has quit IRC | 10:57 | |
| *** MrTango has joined #zope | 11:00 | |
| Moo-- | hi | 11:16 |
| Moo-- | I am reading Zope 2 documentation | 11:16 |
| Moo-- | I hope someone could clarify this part: | 11:16 |
| Moo-- | If the exception type is: “Redirect”, “Multiple Choices” “Moved Permanently”, “Moved Temporarily”, or “Not Modified”, and the exception value is an absolute URI, then no body will be provided and a ‘Location’ header will be included in the output with the given URI. | 11:16 |
| Moo-- | http://docs.zope.org/zope2/zdgbook/ObjectPublishing.html | 11:16 |
| Moo-- | what's "exception type" in this case | 11:17 |
| betabug | I guess something like `raise MovedPermanently, 'http://....'` | 11:19 |
| betabug | according to what it says in 4.11.9. Exceptions | 11:19 |
| *** do3cc has joined #zope | 11:20 | |
| betabug | myself I always set the HTTP status code and other parameters on the RESPONSE object | 11:20 |
| betabug | which does the job just fine | 11:20 |
| bigkevmcd | they do different things | 11:20 |
| bigkevmcd | one would result in the current transaction being rolled back, and the headers being set appropriately | 11:21 |
| betabug | yeah | 11:21 |
| betabug | due to the exception | 11:21 |
| bigkevmcd | better to raise the exception | 11:21 |
| betabug | how's life bigkevmcd? | 11:21 |
| bigkevmcd | not bad :-) | 11:21 |
| betabug | cool! | 11:22 |
| bigkevmcd | how's .gr? | 11:23 |
| bigkevmcd | betabug: what are you working on just now? | 11:24 |
| betabug | something like an online learning app | 11:24 |
| betabug | .gr is, well... taking a little rest till all hell breaks loose again | 11:24 |
| betabug | everybody is on vacation :-) | 11:25 |
| bigkevmcd | hehe :-) | 11:27 |
| bigkevmcd | hah, I worked on an online learning and assessment engine about 11 years ago :-) | 11:27 |
| bigkevmcd | it's still around | 11:28 |
| betabug | yeah, I've worked for that company before, from ~ 1996 - 2001 | 11:30 |
| *** mitchell`off is now known as mitchell | 11:50 | |
| Moo-- | how do I access the global app object? | 11:51 |
| Moo-- | can I import it from somewhere? | 11:51 |
| betabug | uhm, you're on Zope 2 aren't you? | 11:51 |
| betabug | you never need that there | 11:51 |
| *** mitchell is now known as mitchell` | 11:51 | |
| Moo-- | betabug: I want to have a script in app level root | 11:51 |
| Moo-- | betabug: Python script | 11:52 |
| Moo-- | betabug: and call it if needed | 11:52 |
| betabug | so you want the root folder of the ZODB | 11:52 |
| Moo-- | yes | 11:52 |
| Moo-- | it must be in a global, right? | 11:52 |
| betabug | no, there is a method to get it, dunno right now the name | 11:53 |
| Moo-- | betabug: yes. I love the documentation of Zope 2 for things like this. | 11:54 |
| betabug | haha | 11:54 |
| Moo-- | "grep through the code with random words and I hope you hit right one" | 11:54 |
| *** RaceCondition has joined #zope | 11:54 | |
| betabug | s/the code/the code from my Products/ | 11:55 |
| betabug | hmm, probably self.restrictedTraverse('/') should do the trick | 12:00 |
| *** do3cc has quit IRC | 12:05 | |
| *** evilbungle has joined #zope | 12:08 | |
| *** menesis has quit IRC | 12:11 | |
| *** RaceCondition_ has joined #zope | 12:15 | |
| *** RaceCondition has quit IRC | 12:18 | |
| *** RaceCondition_ is now known as RaceCondition | 12:18 | |
| Solgema | hello! i'm importing an plone site as .zexp file im my instance but I'm always getting "invalidations out of order, None < '\x03\x90\x1d\x8f\x87\x95\xd6\x99'" | 12:21 |
| Solgema | any idea? | 12:21 |
| *** ccomb has quit IRC | 12:24 | |
| *** do3cc has joined #zope | 12:25 | |
| *** __mac__ has quit IRC | 12:30 | |
| betabug | you need the exact same zope and plone versions for import to work | 12:32 |
| betabug | also ask in #plone, since I don't know if import even works in plone - it used to be broken | 12:33 |
| *** mr_jolly has joined #zope | 12:40 | |
| *** TomBlockley has quit IRC | 12:46 | |
| *** __mac__ has joined #zope | 12:47 | |
| *** menesis has joined #zope | 13:20 | |
| *** m8 has joined #zope | 13:20 | |
| *** Wu has joined #zope | 13:22 | |
| *** dayne has joined #zope | 13:50 | |
| *** J1m_ has joined #zope | 13:53 | |
| *** do3cc has quit IRC | 13:55 | |
| *** J1m_ has quit IRC | 14:00 | |
| *** J1m_ has joined #zope | 14:12 | |
| *** hariom has joined #zope | 14:27 | |
| *** J1m_ has quit IRC | 14:28 | |
| hariom | I am showing the amount value in tal like this: <td tal:content="result/amount"/> . How to format this amount value to show only 2 decimal places. ? | 14:29 |
| hariom | currently if the amount is showing values like: 256.5431 | 14:29 |
| betabug | use python, whereever you calculate "amount" | 14:29 |
| hariom | betabug: can you give example how? I am new to tal. | 14:30 |
| betabug | not in tal | 14:30 |
| betabug | where does "amount" come from? | 14:30 |
| hariom | betabug: it is coming from zsql script | 14:32 |
| Wu | <td tal:content="python: result["amount"].split('.')[0] + result["amount"].split('.')[1][:2]"/> | 14:33 |
| Wu | but beware this is really ugly code | 14:33 |
| Wu | and it will fail if ammount is not a string containing the representation of a decimal/float number | 14:33 |
| Wu | (if it comes out of a zsql, it would be a string) | 14:34 |
| *** do3cc has joined #zope | 14:34 | |
| Wu | perhaps you could use round() on the string too | 14:34 |
| Wu | sure | 14:35 |
| Wu | much better: | 14:35 |
| Wu | hariom: <td tal:content="python: round(float(result["amount"]), 2)"/> | 14:35 |
| hariom | Wu: Thank you. Trying it out. | 14:36 |
| betabug | using floats is ugly anyway | 14:36 |
| Wu | yep | 14:37 |
| hariom | betabug, Wu: Can't we use something like %0.2f | 14:37 |
| Wu | decimal is much better | 14:37 |
| betabug | hariom: try it yourself | 14:37 |
| Wu | hariom: I don't think so, that notation is to use with print | 14:37 |
| Wu | and AFAIK you can't print inside a tal expression | 14:38 |
| Wu | but betabug is right, try it | 14:38 |
| *** J1m_ has joined #zope | 14:55 | |
| RaceCondition | why aren't marker interfaces persisted to ZODB and how to work around it? | 14:55 |
| RaceCondition | I mean, when I do directlyProvides(dbroot['foo'], IFooMarker), commit() and then reload, IFooMarker.providedBy(dbroot['foo']) => False | 14:57 |
| evilbungle | isn't it supposed to be alsoProvides? | 14:59 |
| RaceCondition | let's see | 14:59 |
| *** Wu has quit IRC | 14:59 | |
| RaceCondition | alsoProvides and directyleProvides have "Declare interfaces declared directly for an object" | 15:00 |
| RaceCondition | but I'll try it nevertheless | 15:00 |
| RaceCondition | okay, it worked now; thanks :) | 15:01 |
| evilbungle | :) | 15:01 |
| *** hariom has quit IRC | 15:02 | |
| RaceCondition | what is the prupose of directlyProvides then? | 15:02 |
| RaceCondition | and alsoProvide's doccomment actually talks about directlyProvides | 15:03 |
| *** J1m_ has quit IRC | 15:03 | |
| *** avoinea has quit IRC | 15:04 | |
| evilbungle | dunno, guess it's probably to do with the fact that directlyProvides overwrites the existing interfaces and alsoProvides adds new | 15:04 |
| *** avoinea has joined #zope | 15:04 | |
| RaceCondition | I see | 15:05 |
| evilbungle | might be possible to make directlyprovides work with ob._p_changed=1 magic | 15:05 |
| * evilbungle doesn't know for sure, just speculating | 15:05 | |
| RaceCondition | oh, it's about that | 15:05 |
| RaceCondition | ah, anyway, thanks again | 15:05 |
| *** avoinea has quit IRC | 15:05 | |
| *** hariom has joined #zope | 15:15 | |
| *** avoinea has joined #zope | 15:20 | |
| *** avoinea has quit IRC | 15:27 | |
| *** avoinea has joined #zope | 15:29 | |
| *** do3cc has quit IRC | 15:32 | |
| RaceCondition | is there a way to define an objects direct interfaces dynamically? | 15:33 |
| RaceCondition | smth like getInterfaces() | 15:33 |
| RaceCondition | I need to set certain marker interfaces on objects directly based on their capabilities, so that later I can choose the right adapter, and setting/unsetting the interfaces as capabilities come and go seems less convenient/elegant than returning the interfaces on the fly | 15:34 |
| gawel | directlyProvides as I remeber | 15:34 |
| RaceCondition | directlyProvides/alsoProvides modifies the interfaces an object provides | 15:34 |
| RaceCondition | I'm asking about having the adapter registry query the object for its interfaces on the fly during adapter lookups | 15:35 |
| *** Solgema has quit IRC | 15:35 | |
| *** Solgema has joined #zope | 15:36 | |
| *** J1m_ has joined #zope | 16:03 | |
| *** Solgema has quit IRC | 16:04 | |
| *** davisagli has quit IRC | 16:05 | |
| *** eperez has quit IRC | 16:05 | |
| *** Solgema has joined #zope | 16:05 | |
| *** hariom has quit IRC | 16:06 | |
| *** davisagli has joined #zope | 16:07 | |
| *** rbanffy has joined #zope | 16:11 | |
| *** ajsmith has joined #zope | 16:24 | |
| *** yvl has quit IRC | 17:09 | |
| *** Wu has joined #zope | 17:11 | |
| *** dayne has quit IRC | 17:11 | |
| *** yvl has joined #zope | 17:14 | |
| *** sp0cksbeard has quit IRC | 17:16 | |
| *** sp0cksbeard has joined #zope | 17:18 | |
| *** davisagli has quit IRC | 17:30 | |
| *** davisagli has joined #zope | 17:30 | |
| *** agroszer has quit IRC | 17:32 | |
| *** m8 has quit IRC | 17:36 | |
| *** sunew has quit IRC | 17:39 | |
| *** do3cc has joined #zope | 17:40 | |
| *** Illuminat23 has joined #zope | 17:51 | |
| *** goschtl has quit IRC | 17:55 | |
| Illuminat23 | Hi, i want to add an Object in an particular Database | 17:56 |
| Illuminat23 | i hace diffrent databases and want to add an object like folder in an particular Database with the management interface | 17:56 |
| Illuminat23 | I'm using zope2.10 with python2.5 | 17:57 |
| planetzopebot | How to create an Object in an particular Database (active questions tagged zope - Stack Overflow) http://stackoverflow.com/questions/6927789/how-to-create-an-object-in-an-particular-database | 18:08 |
| Illuminat23 | my question ;) | 18:11 |
| *** Solgema has quit IRC | 18:13 | |
| *** Solgema has joined #zope | 18:16 | |
| kosh | Illuminat23: I don't get what your question means at all | 18:19 |
| kosh | normall the ZODB is a tree based systems like the unix filesystem where databases are mounted at specific points | 18:19 |
| kosh | so to create an object in a specific database you just create it inside wherever that database is mounted | 18:19 |
| kosh | so if you have a database at a / one mounted at /foo and one mounted at /bar to create an item in the one mounted at /bar you just create the object inside /bar | 18:20 |
| Illuminat23 | i have mountpoints all mounted on /mymount/YEAR like /mymount/2011, /mymount/2010 | 18:24 |
| Illuminat23 | so i have for each year another database | 18:25 |
| Illuminat23 | so i create a new database.fs and want to create an object in /mymount/ with the new database | 18:25 |
| kosh | how large are each of these databases? | 18:26 |
| Illuminat23 | hm diffrent | 18:26 |
| Illuminat23 | some mb up to some gb | 18:27 |
| kosh | just seems like a very strange design | 18:27 |
| kosh | however since you only do this once per year automation seems largely pointless | 18:28 |
| Illuminat23 | yep ;) | 18:28 |
| Illuminat23 | thats why i want to do it at my own | 18:29 |
| Illuminat23 | i did not design it ;) sry^^ | 18:29 |
| kosh | oh well I would create an entry in your zope.conf for that database connection and then inside your management interface use the ZODB Mount Point object to make sure it mounted correctly | 18:30 |
| kosh | I have had to deal with worse designs | 18:30 |
| kosh | I just wanted you to avoid that design if possible, but since you did not design it there is not much you can do | 18:30 |
| Illuminat23 | i now it has work on a way that i can't figure out | 18:32 |
| kosh | I don't get what you are saying | 18:32 |
| Illuminat23 | this has be done since 2007 | 18:32 |
| Illuminat23 | and now the guy who did this is not longer working in "my" company | 18:33 |
| * kosh wonders if the design was on purpose | 18:33 | |
| *** __mac__ has quit IRC | 18:39 | |
| *** ccomb has joined #zope | 18:42 | |
| *** zagy has quit IRC | 18:44 | |
| *** Illuminat23 has quit IRC | 18:52 | |
| *** tiwula has joined #zope | 19:07 | |
| *** chaoflow has quit IRC | 19:13 | |
| *** Solgema has quit IRC | 19:14 | |
| *** chaoflow has joined #zope | 19:15 | |
| *** chaoflow has quit IRC | 19:20 | |
| *** chaoflow has joined #zope | 19:20 | |
| *** Spanktar has joined #zope | 19:35 | |
| *** do3cc has quit IRC | 19:38 | |
| *** davisagli has quit IRC | 19:53 | |
| *** davisagli has joined #zope | 19:53 | |
| *** Wu has quit IRC | 19:54 | |
| *** menesis has quit IRC | 20:01 | |
| *** mitchell` is now known as mitchell`off | 20:02 | |
| *** giampaolo has joined #zope | 20:03 | |
| *** agroszer has joined #zope | 20:06 | |
| *** agroszer has quit IRC | 20:19 | |
| *** Solgema has joined #zope | 20:21 | |
| *** evilbungle has quit IRC | 20:30 | |
| *** menesis has joined #zope | 20:48 | |
| *** menesis has quit IRC | 20:49 | |
| *** menesis has joined #zope | 20:50 | |
| *** evilbungle has joined #zope | 20:56 | |
| *** evilbungle has quit IRC | 20:56 | |
| *** evilbungle has joined #zope | 20:57 | |
| *** evilbungle has quit IRC | 20:57 | |
| *** giampaolo has quit IRC | 21:00 | |
| *** avoinea has quit IRC | 21:02 | |
| *** __mac__ has joined #zope | 21:21 | |
| *** TresEquis has joined #zope | 21:31 | |
| *** Solgema has quit IRC | 21:57 | |
| RaceCondition | is there a way to tell ZODB to ignore, i.e. not persist a particular attribute of a Persistent object? | 22:36 |
| *** rbanffy has quit IRC | 22:56 | |
| *** Arfrever has joined #zope | 22:58 | |
| *** Solgema has joined #zope | 23:05 | |
| *** m8 has joined #zope | 23:08 | |
| *** tiwula has quit IRC | 23:11 | |
| *** rbanffy has joined #zope | 23:18 | |
| kosh | make the attribute _v_ that will make it volatile so it is not stored | 23:20 |
| kosh | so someobject._v_foobie for instance | 23:20 |
| *** r0ver has joined #zope | 23:26 | |
| *** r0ver has quit IRC | 23:30 | |
| *** r0ver has joined #zope | 23:31 | |
| *** r0ver has quit IRC | 23:32 | |
| *** r0ver has joined #zope | 23:35 | |
| *** r0ver has quit IRC | 23:39 | |
| *** ajsmith has quit IRC | 23:39 | |
| *** r0ver has joined #zope | 23:39 | |
| *** r0ver has quit IRC | 23:40 | |
| *** r0ver has joined #zope | 23:41 | |
| *** srichter has quit IRC | 23:44 | |
| *** r0ver has quit IRC | 23:45 | |
| *** r0ver has joined #zope | 23:45 | |
| *** r0ver has quit IRC | 23:48 | |
| *** r0ver has joined #zope | 23:48 | |
| *** r0ver has quit IRC | 23:50 | |
| *** r0ver has joined #zope | 23:51 | |
| *** Solgema has quit IRC | 23:59 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!