*** RaFromBRC is now known as RaFromBRC|lunch | 00:06 | |
*** norro has joined #zope3-dev | 00:26 | |
*** J1m has quit IRC | 00:29 | |
*** tdoggette has quit IRC | 00:51 | |
*** tarek has quit IRC | 00:52 | |
*** tarek has joined #zope3-dev | 00:54 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 00:58 | |
*** tarek has quit IRC | 00:59 | |
*** lucielejard has quit IRC | 01:02 | |
*** yota has joined #zope3-dev | 01:04 | |
*** gstratton has joined #zope3-dev | 01:05 | |
*** benji has quit IRC | 01:05 | |
*** romanofski has joined #zope3-dev | 01:24 | |
*** philiKON has quit IRC | 01:27 | |
*** jamur2 has quit IRC | 01:33 | |
*** lurkymclurkleton has quit IRC | 01:33 | |
*** georgyberdyshev has joined #zope3-dev | 01:42 | |
*** gberdyshev_ has quit IRC | 01:42 | |
*** regebro has quit IRC | 01:49 | |
*** yota has quit IRC | 01:53 | |
*** gstratton_ has joined #zope3-dev | 01:55 | |
*** gstratton has quit IRC | 01:55 | |
*** jsadjohnson has quit IRC | 02:00 | |
*** alga has joined #zope3-dev | 02:04 | |
*** nathany has quit IRC | 02:09 | |
*** jsadjohnson has joined #zope3-dev | 02:16 | |
*** alga has quit IRC | 02:25 | |
*** whit has quit IRC | 02:25 | |
*** junkafarian has quit IRC | 02:39 | |
*** philiKON has joined #zope3-dev | 03:12 | |
*** georgyberdyshev has quit IRC | 03:16 | |
*** b52laptop has quit IRC | 03:17 | |
*** rcrafton has quit IRC | 03:23 | |
*** rmarianski has quit IRC | 03:25 | |
*** norro has quit IRC | 03:26 | |
*** romanofski has quit IRC | 03:33 | |
*** gberdyshev has joined #zope3-dev | 03:34 | |
*** gberdyshev is now known as gberdyshev_ | 03:35 | |
*** RaFromBRC has quit IRC | 03:35 | |
*** georgyberdyshev has joined #zope3-dev | 03:42 | |
*** gberdyshev_ has quit IRC | 03:42 | |
*** georgyberdyshev is now known as gberdyshev_ | 03:42 | |
*** jsadjohnson has quit IRC | 03:48 | |
*** gstratton has joined #zope3-dev | 04:06 | |
*** gstratton_ has quit IRC | 04:06 | |
*** gstratton_ has joined #zope3-dev | 04:21 | |
*** gstratton has quit IRC | 04:21 | |
*** gstratton has joined #zope3-dev | 04:25 | |
*** gstratton_ has quit IRC | 04:25 | |
*** afd_ has joined #zope3-dev | 04:27 | |
*** rcrafton has joined #zope3-dev | 04:33 | |
*** srichter has quit IRC | 04:36 | |
*** pcardune has quit IRC | 04:53 | |
*** flox has quit IRC | 05:12 | |
*** vimes656 has joined #zope3-dev | 05:14 | |
*** rcrafton has quit IRC | 05:29 | |
*** vimes656 has quit IRC | 05:30 | |
*** georgyberdyshev has joined #zope3-dev | 05:42 | |
*** gberdyshev_ has quit IRC | 05:42 | |
*** tdoggette has joined #zope3-dev | 05:42 | |
*** georgyberdyshev is now known as gberdyshev_ | 05:42 | |
*** RaFromBRC has joined #zope3-dev | 06:00 | |
*** dunny has quit IRC | 06:44 | |
*** fairwinds_ has joined #zope3-dev | 06:49 | |
*** fairwinds has quit IRC | 06:57 | |
*** kursor has joined #zope3-dev | 06:57 | |
*** lurkymclurkleton has joined #zope3-dev | 07:03 | |
*** fairwinds_ has quit IRC | 07:09 | |
*** georgyberdyshev has joined #zope3-dev | 07:42 | |
*** gberdyshev_ has quit IRC | 07:42 | |
*** georgyberdyshev is now known as gberdyshev_ | 07:42 | |
*** srichter has joined #zope3-dev | 07:51 | |
*** dunny has joined #zope3-dev | 08:27 | |
*** philiKON_ has joined #zope3-dev | 09:03 | |
*** jayaraj has joined #zope3-dev | 09:06 | |
*** vimes656 has joined #zope3-dev | 09:17 | |
*** jukart has joined #zope3-dev | 09:18 | |
*** philiKON has quit IRC | 09:20 | |
*** ccomb has joined #zope3-dev | 09:32 | |
*** charith_para has joined #zope3-dev | 09:39 | |
*** gstratton has quit IRC | 09:39 | |
*** gstratton_ has joined #zope3-dev | 09:39 | |
*** charith_para has quit IRC | 09:40 | |
*** georgyberdyshev has joined #zope3-dev | 09:42 | |
*** gberdyshev_ has quit IRC | 09:42 | |
*** georgyberdyshev is now known as gberdyshev_ | 09:42 | |
*** gstratton_ has quit IRC | 09:43 | |
*** gstratton has joined #zope3-dev | 09:43 | |
*** ccomb has quit IRC | 09:52 | |
*** ccomb has joined #zope3-dev | 09:53 | |
*** jukart has quit IRC | 09:59 | |
*** norro has joined #zope3-dev | 10:10 | |
*** tarek has joined #zope3-dev | 10:17 | |
*** flox has joined #zope3-dev | 10:33 | |
*** b52laptop has joined #zope3-dev | 10:52 | |
*** jukart has joined #zope3-dev | 11:07 | |
*** tarek has quit IRC | 11:20 | |
*** gstratton has quit IRC | 11:39 | |
*** junkafarian has joined #zope3-dev | 11:49 | |
*** vimes656_ has joined #zope3-dev | 11:50 | |
*** mcdonc has quit IRC | 11:53 | |
*** mcdonc has joined #zope3-dev | 11:53 | |
*** vimes656 has quit IRC | 12:00 | |
*** jukart has quit IRC | 12:05 | |
*** malthe has joined #zope3-dev | 12:07 | |
*** kursor has quit IRC | 12:19 | |
*** gberdyshev_ has quit IRC | 12:20 | |
ARiKA-2 | Making a content type for Zope 3... | 12:41 |
---|---|---|
ARiKA-2 | s656@203.200.58.142] has joined #zope3-dev | 12:41 |
ARiKA-2 | 08:53 -!- mcdonc [n=mcdonc@ip72-209-234-118.dc.dc.cox.net] has quit [Remote closed the connection] | 12:41 |
ARiKA-2 | no | 12:41 |
ARiKA-2 | that's not what I want to paste... | 12:41 |
ARiKA-2 | this one | 12:41 |
ARiKA-2 | AttributeError: 'module' object has no attribute '__module__' | 12:41 |
ARiKA-2 | (the class has been created with the pyskel script) | 12:41 |
*** charith_para has joined #zope3-dev | 12:52 | |
*** charith_para has quit IRC | 12:52 | |
afd_ | ARiKA-2: I see several choices: 1. paste the code to a pastebin so that we can review it 2. Write those classes and package structure yourself 3. Use grok | 12:58 |
ARiKA-2 | package the structure? | 12:59 |
ARiKA-2 | I'm reading about it now... wait | 12:59 |
afd_ | there's probably something wrong with the generated package... I'm willing to look at the problem, but you have to help me at that | 13:00 |
ARiKA-2 | ok | 13:00 |
ARiKA-2 | what do I pastebin? | 13:00 |
afd_ | I don't use ZopeSkel, so there may be something obvious that others can help you... | 13:00 |
afd_ | read channel topic | 13:00 |
ARiKA-2 | probably | 13:00 |
ARiKA-2 | yes yes | 13:00 |
ARiKA-2 | but what do I need to paste? what part of the code, I mean | 13:00 |
afd_ | I'd say, for starters, the full traceback | 13:00 |
ARiKA-2 | ok | 13:01 |
* ARiKA-2 really starter lol | 13:01 | |
lisppaste6 | Arika pasted "problem..." at http://paste.lisp.org/display/62218 | 13:05 |
ARiKA-2 | yes yes | 13:05 |
ARiKA-2 | X server died... have to wait lol | 13:05 |
ARiKA-2 | http://paste.lisp.org/display/62218 | 13:06 |
ARiKA-2 | that one | 13:06 |
ARiKA-2 | creating a content type "somewhat like a folder" in order to "get all my site together"... | 13:06 |
afd_ | DeprecationWarning: The 'content' alias for the 'class' directive has been deprecated and will be removed in Zope 3.5. | 13:06 |
afd_ | What are you using to generate that skeleton? | 13:07 |
ARiKA-2 | I've got zope 3 book | 13:07 |
afd_ | which one? | 13:07 |
ARiKA-2 | the official | 13:07 |
ARiKA-2 | lol | 13:07 |
ARiKA-2 | it was on the website | 13:07 |
ARiKA-2 | Zope 3 Developer's handbook | 13:07 |
afd_ | yeah... :) I think it was written with zope 3.0 in mind | 13:08 |
ARiKA-2 | by Stephan Richter | 13:08 |
ARiKA-2 | :) | 13:08 |
ARiKA-2 | well | 13:08 |
afd_ | <content> is replaced by <class> | 13:08 |
afd_ | look in the apidoc > zcml reference | 13:08 |
ARiKA-2 | If you don't RTFM you won't ever learn | 13:08 |
afd_ | apidoc.zope.org | 13:08 |
ARiKA-2 | that'ss what I think... | 13:08 |
ARiKA-2 | ahh | 13:08 |
ARiKA-2 | so it changed in the lastest versions, isn't it? | 13:08 |
ARiKA-2 | ahhh | 13:09 |
ARiKA-2 | didn't seee that line in the backtrace | 13:09 |
afd_ | that's not your real problem though | 13:09 |
ARiKA-2 | no? | 13:09 |
afd_ | araSquared.Ara2Site.Ara2Site | 13:09 |
ARiKA-2 | yeah | 13:10 |
ARiKA-2 | that's the class | 13:10 |
ARiKA-2 | araSquaared/Ara2SSite/Ara2Site.py | 13:10 |
afd_ | you have a folder called araSquared, with a file called Ara2Site.py, with a class called Ara2Site ? | 13:10 |
ARiKA-2 | (not the interface) | 13:10 |
afd_ | ok... you have a problem pointing to the right class | 13:11 |
ARiKA-2 | Tell me :) | 13:11 |
afd_ | first, make sure you have __init__.py files in your two folders | 13:11 |
ARiKA-2 | yes | 13:11 |
ARiKA-2 | it is on all the inheritance of directories | 13:12 |
ARiKA-2 | a __init__.py | 13:12 |
afd_ | as a side not, you're really verbose with the naming | 13:12 |
ARiKA-2 | if not the tree won't be a package | 13:12 |
afd_ | side note | 13:12 |
ARiKA-2 | that's what my python book says, at least | 13:12 |
afd_ | yes, right | 13:12 |
ARiKA-2 | really verbose? | 13:12 |
ARiKA-2 | lol | 13:12 |
ARiKA-2 | don't know if a name conflict could happen really... | 13:12 |
afd_ | araquared/site/app.py might be a good path | 13:13 |
afd_ | if you want to keep the site in a separate package | 13:13 |
afd_ | in app.py you put your Ara2Site class | 13:13 |
afd_ | and you point to it with | 13:13 |
ARiKA-2 | hmm... | 13:13 |
ARiKA-2 | yeah | 13:13 |
ARiKA-2 | would be in the hierarchy of araSquared | 13:13 |
ARiKA-2 | true... | 13:13 |
afd_ | <class class="arasquared.site.app.Ara2Site"> | 13:13 |
afd_ | but | 13:13 |
afd_ | if you place the configure.zcml in the folder where the app.py module would sit, you can do | 13:14 |
ARiKA-2 | that's only a recommendation, isn't it? | 13:14 |
afd_ | <class class=".app.Ara2Site"> | 13:14 |
ARiKA-2 | ahhh yeah | 13:14 |
ARiKA-2 | file app.py class Ara2Site | 13:14 |
afd_ | yes, just a recomendation/conventions | 13:14 |
ARiKA-2 | ^^ | 13:14 |
ARiKA-2 | conventions conforming what? :) | 13:14 |
*** b52laptop has quit IRC | 13:14 | |
ARiKA-2 | I know there are some rules for Zope 3 packages | 13:15 |
afd_ | python convention: you name all packages/modules with lowercases, classes with upper case | 13:15 |
ARiKA-2 | hmm ok | 13:15 |
ARiKA-2 | I'm not a Python programming really | 13:15 |
ARiKA-2 | lol | 13:15 |
ARiKA-2 | I read 2 books before beginning this hahaha | 13:15 |
ARiKA-2 | A friend of me recommendated me to learn python... | 13:15 |
afd_ | don't worry, python's easy | 13:15 |
ARiKA-2 | yeah yeah | 13:15 |
ARiKA-2 | coming from C/c++ it gets easy | 13:15 |
ARiKA-2 | lol | 13:16 |
ARiKA-2 | I was looking for a way to create a website | 13:16 |
ARiKA-2 | but LAMP systems are exhausted really | 13:16 |
afd_ | really, grok might be easier for you | 13:16 |
ARiKA-2 | and I knew Zope from Plone and so | 13:16 |
ARiKA-2 | and I saw that Zope 3 was a bit difficult.. | 13:16 |
ARiKA-2 | I'm liking it, don't worry | 13:16 |
ARiKA-2 | have time to code :) | 13:17 |
afd_ | Grok is a layer on top of zope 3 which uses several conventions to make it easier to put your app together | 13:17 |
ARiKA-2 | afd_: yeah, people recommended me Grok | 13:17 |
ARiKA-2 | But don't like the name :_ | 13:17 |
ARiKA-2 | Hahaahahahahahahahah :) | 13:17 |
afd_ | grok helps you grok zope 3 :) | 13:17 |
ARiKA-2 | yeah yeah | 13:17 |
ARiKA-2 | smashing zope 3 is the misssion of grok I read | 13:18 |
ARiKA-2 | :) | 13:18 |
afd_ | in grok, for example, you can get away with a lot less zcml code, which I think it's the dificult thing to understand in the begining | 13:18 |
afd_ | there are some tutorials which are more up to date then the handbook | 13:18 |
afd_ | the Todo app tutorial, I think | 13:19 |
ARiKA-2 | aha | 13:19 |
ARiKA-2 | cool | 13:19 |
ARiKA-2 | :) | 13:19 |
afd_ | there's a link from the wiki page to it | 13:19 |
ARiKA-2 | I don't have a problem about doing my app, really... | 13:19 |
ARiKA-2 | Zope is powerful. | 13:19 |
afd_ | ok, that's cool | 13:19 |
ARiKA-2 | Would get ok with what I want to do. | 13:19 |
afd_ | but I'm worried you'll get frustrated by the old docs | 13:19 |
ARiKA-2 | Oh no... | 13:19 |
ARiKA-2 | They are simply outdated. | 13:20 |
ARiKA-2 | But I got the concept about Zope. | 13:20 |
ARiKA-2 | The worse part for my website won't ever be coding it... | 13:20 |
*** romanofski has joined #zope3-dev | 13:20 | |
ARiKA-2 | It would be making a layout themee for it hahahaha :) | 13:20 |
afd_ | hehe | 13:20 |
afd_ | what type of site you're doing? | 13:21 |
ARiKA-2 | I'm doing my personal site. | 13:21 |
ARiKA-2 | But I have to create something | 13:21 |
afd_ | I see | 13:21 |
ARiKA-2 | in order to have a mathematical and multilingual reference | 13:21 |
ARiKA-2 | so... | 13:21 |
afd_ | reading some code will help you | 13:21 |
ARiKA-2 | I have to integrate latex into the code in order to generate all the images | 13:21 |
ARiKA-2 | that appear around the web.. | 13:22 |
ARiKA-2 | but I planned it a bit... | 13:22 |
afd_ | that shouldn't be much of a problem... | 13:22 |
ARiKA-2 | I've got a folder | 13:22 |
ARiKA-2 | where I put what I call filters | 13:22 |
ARiKA-2 | so if the latex filter is active on a document | 13:22 |
ARiKA-2 | then it will parse latex inline code | 13:22 |
ARiKA-2 | :) | 13:22 |
ARiKA-2 | That's the reason because I don't use a LAMP system... | 13:23 |
ARiKA-2 | From all the CMS that exist only Drupal or Joomla! was ok for me. | 13:23 |
ARiKA-2 | But Joomla! mosLaTeX was abandoned and doesn't work on 1.5 (I fixed it, but generates really bad images lol) | 13:23 |
ARiKA-2 | and Drupal one, DruTeX, doesn't work on 6.2 and I have no idea about Drupal modules... | 13:24 |
afd_ | http://svn.zope.org/buddydemo/trunk/src/buddydemo/ | 13:24 |
ARiKA-2 | Zope, when you do the CMS by yourself | 13:24 |
afd_ | There's an example of an app you can look at | 13:24 |
ARiKA-2 | offers more possibilities | 13:24 |
ARiKA-2 | ok :) | 13:24 |
ARiKA-2 | afd_: I can tell you... no one talks about Zope lol | 13:25 |
ARiKA-2 | I discovered it when I saw Plone | 13:25 |
ARiKA-2 | and one day I installed Zope 2.x without plone and see what it is about... | 13:25 |
ARiKA-2 | lol | 13:25 |
afd_ | yeah... it's not heavily promoted | 13:25 |
ARiKA-2 | Not really... | 13:25 |
ARiKA-2 | all my friends recommended me PHP... | 13:26 |
ARiKA-2 | but I'm bored of PHP... :\ | 13:26 |
ARiKA-2 | PHP here, PHP there, PHP everywhere... | 13:26 |
afd_ | well, between php and python I'd chose python | 13:27 |
ARiKA-2 | Hahahaha :) | 13:27 |
ARiKA-2 | My friend told me that python gets you addicted lol | 13:27 |
afd_ | but the learning curve is a bit longer | 13:27 |
ARiKA-2 | About Zope? | 13:27 |
ARiKA-2 | I realised about that | 13:27 |
ARiKA-2 | lol | 13:27 |
afd_ | many many years ago when I made the transition from php I thought python's docs suck cause they don't have inline comments. Now I appreciate them more | 13:28 |
ARiKA-2 | Well, I could use Apache+mod_python (that will be also a LAMP) | 13:28 |
ARiKA-2 | but I loose Zope's web framework | 13:28 |
ARiKA-2 | afd_: afaik they are # lalla or """ lalala """ | 13:28 |
ARiKA-2 | :) | 13:28 |
afd_ | I'm not trying to steer you away from zope, but many of the python developers right now are enamoured with Django | 13:29 |
ARiKA-2 | enamoured? | 13:29 |
ARiKA-2 | lol | 13:29 |
afd_ | There's also Pylons and Turbogears | 13:29 |
*** vimes656 has joined #zope3-dev | 13:29 | |
ARiKA-2 | What happens with Django? | 13:29 |
afd_ | it's a complete framework to build websites, with an SQL database | 13:30 |
ARiKA-2 | Aha. | 13:30 |
afd_ | something to bring the ease of PHP to the unwashed python masses, I guess :) | 13:30 |
ARiKA-2 | yeah yeah... :) | 13:30 |
ARiKA-2 | now I'm thinking about doing a Theming thing for this... | 13:30 |
afd_ | it's probably a thousand times better then php, but still not zope | 13:30 |
ARiKA-2 | no Idea about what to do... I'll continue reading lol | 13:30 |
ARiKA-2 | I want to learn Zope really :) | 13:31 |
afd_ | ARiKA-2: there is a book that is published and up to date on z3 | 13:31 |
ARiKA-2 | what book | 13:31 |
afd_ | Web component development with Zope, v3 | 13:31 |
ARiKA-2 | next month I'll print it | 13:31 |
ARiKA-2 | lol | 13:31 |
ARiKA-2 | aha | 13:31 |
ARiKA-2 | it is not a free book, isn't it? | 13:31 |
afd_ | it's not | 13:31 |
ARiKA-2 | *shit* | 13:32 |
ARiKA-2 | :) | 13:32 |
afd_ | worldcookery.com | 13:32 |
*** tarek has joined #zope3-dev | 13:32 | |
afd_ | at the very least get the code, it's free | 13:32 |
afd_ | if you can, but the book, you'll do its author a favour :) | 13:32 |
ARiKA-2 | yeah sure | 13:33 |
ARiKA-2 | lol | 13:33 |
afd_ | but = buy | 13:33 |
*** malthe has quit IRC | 13:34 | |
ARiKA-2 | yeah yeah | 13:34 |
*** tarek has quit IRC | 13:34 | |
ARiKA-2 | afd_: as far as I see... | 13:36 |
ARiKA-2 | I have to implement a Document object that contains languages... | 13:36 |
ARiKA-2 | That i18n implementation is really what to say... | 13:37 |
ARiKA-2 | lol | 13:37 |
ARiKA-2 | if I have to translate my website on that way would be harder | 13:37 |
ARiKA-2 | :P | 13:37 |
afd_ | I've done multilanguage content recently | 13:37 |
afd_ | using the z3c.language.* packages | 13:37 |
ARiKA-2 | how is it about? | 13:37 |
ARiKA-2 | I've seen that Translating domain thing... | 13:37 |
ARiKA-2 | and well... ugly interface for translating... | 13:38 |
afd_ | for me, easy. I plan to write a tutorial about it | 13:38 |
ARiKA-2 | would be beetter using Document.html/en_US and so | 13:38 |
ARiKA-2 | lol | 13:38 |
afd_ | using those packages you translate through your content item's edit interface | 13:38 |
ARiKA-2 | yeah? | 13:38 |
afd_ | yes, like plone + LinguaPlone, if you know about that | 13:39 |
ARiKA-2 | no, not really | 13:39 |
ARiKA-2 | I've set up plone sites | 13:40 |
ARiKA-2 | but were no multilingual :) | 13:40 |
afd_ | well, LinguaPlone adds a translate menu to content items, which lets you edit/translate from Plone's interface | 13:40 |
ARiKA-2 | hmm | 13:41 |
ARiKA-2 | the module continues to fail after changing it to class | 13:41 |
ARiKA-2 | lol | 13:41 |
afd_ | make sure you point to the class, not to the module | 13:41 |
ARiKA-2 | what you mean... | 13:42 |
ARiKA-2 | <class class="araSquared.Ara2Site.Ara2Site"> | 13:42 |
ARiKA-2 | got that | 13:42 |
ARiKA-2 | file Ara2Site class Ara2Site into that file | 13:42 |
afd_ | yes | 13:42 |
ARiKA-2 | so what would be the problem? :\ | 13:44 |
afd_ | I'm not sure | 13:44 |
afd_ | post a traceback again | 13:44 |
ARiKA-2 | I point to that into <factory> | 13:44 |
afd_ | you don't really need factories | 13:44 |
ARiKA-2 | ah no? | 13:45 |
afd_ | unless you're doing a really extensible CMS, it's just one more level of indirection... | 13:45 |
ARiKA-2 | what do they serve for? | 13:45 |
*** vimes656_ has quit IRC | 13:45 | |
ARiKA-2 | lol | 13:45 |
afd_ | they allow you to have "policies" on object creations | 13:46 |
ARiKA-2 | well | 13:46 |
ARiKA-2 | My project would extend as I waant lol | 13:46 |
ARiKA-2 | what I need what I code | 13:46 |
afd_ | like, initialize them with certain values, for example | 13:46 |
ARiKA-2 | aha | 13:46 |
ARiKA-2 | cool | 13:46 |
afd_ | It's still easy, if you really decide later on that you want to do something like that, to add a subscriber for the IObjectAddedEvent, that would allow you to do something with that object | 13:47 |
ARiKA-2 | subcriber? | 13:48 |
ARiKA-2 | lol | 13:48 |
ARiKA-2 | hey, I'm in that book on the chapter about creating content... lol | 13:48 |
afd_ | zope has an event framework, so you can program stuff to react to events | 13:49 |
ARiKA-2 | aha | 13:49 |
ARiKA-2 | Is this very powerful, this stuff... | 13:50 |
*** hexsprite has quit IRC | 14:08 | |
*** vimes656_ has joined #zope3-dev | 14:08 | |
*** fairwinds has joined #zope3-dev | 14:13 | |
*** hexsprite has joined #zope3-dev | 14:13 | |
*** vimes656 has quit IRC | 14:18 | |
ARiKA-2 | afd_: I have to do also an users management thing? | 14:19 |
afd_ | depends on what your intentions are... | 14:20 |
ARiKA-2 | having users :) | 14:20 |
ARiKA-2 | and they can register from the webpage and so... | 14:20 |
ARiKA-2 | I've got some contributors for my mathematical reference, also lol | 14:21 |
afd_ | there's a package that covers users registration | 14:21 |
afd_ | http://svn.zope.org/gocept.registration/trunk/ | 14:21 |
ARiKA-2 | will integrate with whatever application? | 14:21 |
afd_ | probably yes | 14:21 |
afd_ | http://svn.zope.org/gocept.registration/trunk/README.txt?rev=84662&view=markup | 14:22 |
ARiKA-2 | I'm gonna read the code and see it :) | 14:22 |
ARiKA-2 | do it stores users informations? | 14:24 |
afd_ | no | 14:24 |
afd_ | that's covered by the PAU, builtin zope component (zope.app.authentication) | 14:25 |
ARiKA-2 | ohh :\ | 14:25 |
ARiKA-2 | aha | 14:25 |
ARiKA-2 | Yeah... | 14:25 |
afd_ | it's covered in a basic way, you're supposed to extend the classes with your own info (create your own kind of internal principal object) | 14:26 |
ARiKA-2 | inheriting from PAU, isn't it? | 14:26 |
afd_ | no... creating new types of InternalPrincipal objects | 14:27 |
ARiKA-2 | hmm | 14:27 |
ARiKA-2 | an user object | 14:27 |
ARiKA-2 | gotcha | 14:27 |
afd_ | yes | 14:27 |
afd_ | actually, in retrospect, it may be an unnecessary idea | 14:27 |
ARiKA-2 | objects can be simply Python objects, issn't it? | 14:27 |
ARiKA-2 | not actually a content object | 14:27 |
afd_ | yes, they're python objects | 14:27 |
ARiKA-2 | ahhh I get it... | 14:27 |
ARiKA-2 | as I read those logic goes into non-content place of Zope... | 14:28 |
afd_ | usually you inherit from Persistent, PersistentList, PersistentMapping or BTreeContainer, depending on the type of content object you want to do | 14:28 |
ARiKA-2 | yeah | 14:28 |
ARiKA-2 | if Every user makes an object | 14:28 |
ARiKA-2 | would be BTreContainer | 14:28 |
afd_ | regarding users: you'll probably have homefolders, you can store their info on the home folder | 14:28 |
ARiKA-2 | aha | 14:29 |
ARiKA-2 | yeah | 14:29 |
ARiKA-2 | you can make an object not seen by the web, isn't it? | 14:29 |
afd_ | yes | 14:29 |
afd_ | zope also has the concept of annotations | 14:29 |
ARiKA-2 | if you don't add browser/ thing then the object will be completely transparent to the system... | 14:29 |
ARiKA-2 | that's about DublinCore or whatever :) | 14:29 |
afd_ | you can attach any information to an object without "poluting" its initial meaning and purpose | 14:29 |
ARiKA-2 | yeah yeah... | 14:30 |
ARiKA-2 | hmm.. I'm beginning to really like this lol | 14:30 |
ARiKA-2 | saves more time than PHP ^^ | 14:30 |
ARiKA-2 | so... | 14:30 |
ARiKA-2 | into an object I can annotate things like "Owner of the file" and a lot of etceteras | 14:31 |
*** dunny has quit IRC | 14:31 | |
afd_ | this is covered by the security mechanisms | 14:31 |
afd_ | IPrincipalRoleManager | 14:31 |
ARiKA-2 | I'm gonna read that in some few chapters | 14:31 |
afd_ | tells you who has what roles on an object | 14:31 |
ARiKA-2 | aha | 14:31 |
ARiKA-2 | and you can also create roles, isn't it? | 14:31 |
afd_ | and you | 14:32 |
ARiKA-2 | (Writer, publisher, administrator, and so) | 14:32 |
afd_ | yes, you create roles, permissions, and you grant the permissions to roles | 14:32 |
ARiKA-2 | Cool | 14:32 |
ARiKA-2 | Right now I got the kind of idea that makes people not use or promote Zope lol | 14:33 |
ARiKA-2 | (it's difficult to understand hahaha) | 14:33 |
afd_ | then you grant a role to a user (principal id) in the context of an object (with IPrincipalRoleManager) | 14:33 |
ARiKA-2 | yeah | 14:33 |
afd_ | roles are inherited along the tree of objects | 14:33 |
ARiKA-2 | aha | 14:33 |
ARiKA-2 | so, for every home folder I add the folder with IPrincipalRoleManager pointing to the desired user | 14:34 |
ARiKA-2 | and then I grant to him all the roles in order to use the folder | 14:34 |
afd_ | tipically you'll create a role "portal.Owner", and grant this role to the user | 14:36 |
ARiKA-2 | aha | 14:36 |
afd_ | then you can reuse this role, in case you have shared folders, where more then one user creates content | 14:36 |
ARiKA-2 | aha | 14:36 |
ARiKA-2 | cool | 14:36 |
ARiKA-2 | and what would be the idea about making all the site look with a templated layout? | 14:37 |
afd_ | depends | 14:38 |
afd_ | 1. you can do a layout template, where you define a macro and slots using the templating METAL mechanism | 14:38 |
ARiKA-2 | yeah | 14:39 |
afd_ | in your pages you say that you use the page macro, and you fill the body or whatever slot | 14:39 |
ARiKA-2 | depending on the view I select a template | 14:39 |
afd_ | kind of | 14:39 |
ARiKA-2 | yeah... | 14:39 |
afd_ | there's also the z3c.pagelet stuff, where, for each view, you have a layout template and a "content" template | 14:40 |
ARiKA-2 | aha | 14:40 |
afd_ | then there's the viewlets, which can be used as "building blocks". Not exactly layouting stuff, but you'll probably want to know about them | 14:41 |
ARiKA-2 | the book I have | 14:41 |
ARiKA-2 | talks about that? | 14:41 |
afd_ | no, viewlets are a newer thing | 14:41 |
afd_ | but it talks about the templates and macros, you need to learn that | 14:41 |
ARiKA-2 | the ZTP thing, no? | 14:42 |
ARiKA-2 | or DTML | 14:42 |
afd_ | ZPT | 14:42 |
ARiKA-2 | ok | 14:42 |
afd_ | you don't need to touch dtml | 14:42 |
ARiKA-2 | so | 14:42 |
ARiKA-2 | templates are done in ZTP | 14:42 |
*** b52laptop has joined #zope3-dev | 14:42 | |
afd_ | here's an article on the subject, written by your's truely: http://play.pixelblaster.ro/blog/archive/2007/12/17/template-layout-options-when-developing-with-zope-3 | 14:42 |
ARiKA-2 | bookmarking it | 14:42 |
ARiKA-2 | of course this extends to be able to select the template of the document if whatever... | 14:44 |
ARiKA-2 | (doing python code) | 14:44 |
ARiKA-2 | cool | 14:44 |
ARiKA-2 | well | 14:48 |
ARiKA-2 | thank you very much | 14:48 |
ARiKA-2 | I'll continue reading the book | 14:48 |
ARiKA-2 | :) | 14:48 |
afd_ | np | 14:48 |
ARiKA-2 | I want to finish it and code more | 14:48 |
ARiKA-2 | lol | 14:48 |
ARiKA-2 | Zope is fantastic | 14:48 |
afd_ | read this also, while going through the book | 14:49 |
afd_ | http://kpug.zwiki.org/WhatIsNewInZope33 | 14:49 |
afd_ | it tells you some of the changes | 14:49 |
afd_ | also, at least get the code from worldcookery.com, it also has up to date examples of code | 14:49 |
ARiKA-2 | 3.4c1 here lol | 14:49 |
ARiKA-2 | yeah | 14:50 |
ARiKA-2 | I don't find on the Internet the code... | 14:50 |
ARiKA-2 | I mean | 14:50 |
ARiKA-2 | the book | 14:50 |
ARiKA-2 | lol | 14:50 |
afd_ | http://worldcookery.com/Downloads | 14:50 |
afd_ | wcsite.tgz might also be of interest to you | 14:51 |
ARiKA-2 | yeah | 14:51 |
ARiKA-2 | that's only examples | 14:51 |
ARiKA-2 | :) | 14:51 |
ARiKA-2 | I'll see them, btw... | 14:52 |
ARiKA-2 | well | 14:52 |
ARiKA-2 | Thank you very much. | 14:52 |
afd_ | :) | 14:53 |
*** Theuni has joined #zope3-dev | 15:10 | |
ARiKA-2 | it is needed to write all that tests the book talks about? | 15:11 |
afd_ | they're not required to run the app, if that's what you mean | 15:12 |
ARiKA-2 | yeah... | 15:13 |
ARiKA-2 | but what do they serve for? | 15:13 |
afd_ | unit testing, automated tests, help with refactoring and so on | 15:14 |
ARiKA-2 | ahh ok | 15:14 |
afd_ | most of a things a test should do | 15:14 |
*** jukart has joined #zope3-dev | 15:29 | |
*** jukart has quit IRC | 15:34 | |
*** hexsprite has quit IRC | 15:36 | |
*** yota has joined #zope3-dev | 15:39 | |
*** romanofski has quit IRC | 15:40 | |
*** hexsprite has joined #zope3-dev | 16:32 | |
*** jsadjohnson has joined #zope3-dev | 16:47 | |
*** vimes656_ has quit IRC | 16:53 | |
*** romanofski has joined #zope3-dev | 16:54 | |
*** malthe has joined #zope3-dev | 17:00 | |
*** gstratton has joined #zope3-dev | 17:04 | |
*** dobee has joined #zope3-dev | 17:05 | |
*** kursor has joined #zope3-dev | 17:11 | |
*** goschtl has joined #zope3-dev | 17:18 | |
*** tarek has joined #zope3-dev | 17:18 | |
*** jayaraj has quit IRC | 17:22 | |
*** dobee has quit IRC | 17:24 | |
*** vimes656 has joined #zope3-dev | 17:25 | |
*** gstratton has quit IRC | 17:33 | |
*** vimes656 has quit IRC | 18:00 | |
*** goschtl has quit IRC | 18:02 | |
*** flox has quit IRC | 18:10 | |
*** flox has joined #zope3-dev | 18:10 | |
*** ChanServ sets mode: +o srichter | 18:38 | |
*** jsadjohnson has quit IRC | 18:40 | |
*** vimes656 has joined #zope3-dev | 18:43 | |
*** zagy has joined #zope3-dev | 18:49 | |
*** jpcw2002 has quit IRC | 18:50 | |
*** norro_ has joined #zope3-dev | 19:00 | |
*** tarek has quit IRC | 19:08 | |
*** tarek has joined #zope3-dev | 19:09 | |
*** jpcw2002 has joined #zope3-dev | 19:17 | |
*** goschtl has joined #zope3-dev | 19:30 | |
*** fairwinds has quit IRC | 19:30 | |
*** vimes656_ has joined #zope3-dev | 19:50 | |
*** b52lap has joined #zope3-dev | 20:01 | |
*** b52laptop has quit IRC | 20:01 | |
*** goschtl has quit IRC | 20:02 | |
*** vimes656 has quit IRC | 20:08 | |
*** romanofski has quit IRC | 20:13 | |
*** jpcw2002 has quit IRC | 20:26 | |
*** vimes656 has joined #zope3-dev | 20:35 | |
*** norro_ has quit IRC | 20:50 | |
*** vimes656_ has quit IRC | 20:53 | |
ARiKA-2 | do Zope has a revision system or whatever? | 20:54 |
ARiKA-2 | (because of the UNDO button lol) | 20:54 |
afd_ | ARiKA-2: thanks to its transactional nature, zope can undo changes made to the database | 20:56 |
afd_ | there are separate extension packages if you need more than that | 20:57 |
afd_ | (ex: versioning) | 20:57 |
ARiKA-2 | aha | 20:57 |
ARiKA-2 | well | 20:57 |
ARiKA-2 | I was thinking about making an RCS add-on lol | 20:58 |
ARiKA-2 | when you view the file you check out the desired version and so | 20:58 |
ARiKA-2 | and save documents in RCS file format | 20:58 |
afd_ | http://svn.zope.org/zc.vault/trunk/README.txt?rev=71379&view=markup | 21:01 |
afd_ | there's also z3c.vcsync | 21:01 |
ARiKA-2 | hummm | 21:01 |
*** kursor has quit IRC | 21:02 | |
*** tarek has quit IRC | 21:23 | |
*** tarek has joined #zope3-dev | 21:24 | |
*** tarek has quit IRC | 21:29 | |
*** kursor has joined #zope3-dev | 21:30 | |
*** vimes656_ has joined #zope3-dev | 21:38 | |
*** kursor has quit IRC | 21:43 | |
*** tarek has joined #zope3-dev | 21:50 | |
*** vimes656 has quit IRC | 21:57 | |
*** timte has joined #zope3-dev | 22:05 | |
*** gberdyshev has joined #zope3-dev | 22:14 | |
*** gberdyshev is now known as gberdyshev_ | 22:15 | |
*** dunny has joined #zope3-dev | 22:16 | |
*** hexsprite has quit IRC | 22:22 | |
*** vimes656 has joined #zope3-dev | 22:41 | |
*** vimes656_ has quit IRC | 22:41 | |
*** alecm has joined #zope3-dev | 23:08 | |
*** vimes656 has quit IRC | 23:17 | |
*** alecm has quit IRC | 23:23 | |
*** alecm has joined #zope3-dev | 23:23 | |
*** ktwilight_ has joined #zope3-dev | 23:29 | |
*** alecm has quit IRC | 23:40 | |
*** ktwilight has quit IRC | 23:42 | |
*** georgyberdyshev has joined #zope3-dev | 23:43 | |
*** gberdyshev_ has quit IRC | 23:43 | |
*** georgyberdyshev is now known as gberdyshev_ | 23:43 | |
*** alecm has joined #zope3-dev | 23:46 | |
*** ccomb has quit IRC | 23:53 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!