Hi Marcello,
Wow.. sounds like a neat book. ;-) Seriously, Phil Eby has
suggested that there will be some sort of migration helpers to move from
ZPatterns to TransWarp (www.eby-sarna.com):
http://www.eby-sarna.com/mailman/listinfo/transwarp
http://cvs.eby-sarna.com/TransWarp/
Also..
I think it's worth having a completely separate Zope. Otherwise there's
no way to separate development and staging versions of filesystem based
products. You might be interested in ZSyncer, or ZCVSFolder for
synchronization.
-steve
On Monday, April 15, 2002, at 12:12 PM, Ted Skolnick wrote:
Thanks Dieter,
I think ZPatterns is certainly worth a look. It allows you to
slice-and-dice what you want to store in ZODB or RDBMS. The best part is
you can develop totally in ZODB, then migrate to RDB a bit at a time (if
you like) without changing your app, or your data classes. We have
Hi Jean,
You might get more feedback from the ZPatterns list on something
like this. My gut reaction is that subclassing in python 2.1/1.5
traverses the classes to find methods in a way that makes the *order* of
classes very important. IIUC Python 2.2 has a much more sophisticated
I don't know if I'm doing something wrong, but when I try to unpack and
run Zope-2.5.0a1 I can't seem to authenticate manage_workspace. I
haven't snooped much, but it seems that options in Management.py comes
back empty:
Hi Lukas,
Have you tried a simple export/import?
-steve
On Thursday, October 18, 2001, at 07:44 PM, Lukas Maag wrote:
hi,
i use zope 2.4.1 and the redistribution fuction works not. i can not
distribute
a product under allowance of redistribution. if i want to distrbute on
Hi Andre,
What OS? I've had lots of trouble with Postgres and threads on FreeBSD. Have
you tried starting Zope with '-D' to see if threads are an issue?
-steve
Andre Schubert wrote:
Hi all,
I have a problem with my Zope, he hangs unexpectly if i view a special
Method which
nothing
happens.
as
Steve Spicklemire schrieb:
Hi Andre,
What OS? I've had lots of trouble with Postgres and threads on FreeBSD.
Have
you tried starting Zope with '-D' to see if threads are an issue?
-steve
Andre Schubert wrote:
Hi all,
I have a problem
select data from
2001-06-01 5:00 to
2001-06-20 12:10
or from
2001-06-01 5:05 to
2001-06-20 12:10
I hope you understand my explanations in my bad german-english.
I think I get the basic picture... but
as
Steve Spicklemire schrieb:
Well, the good news is you have a reproducable
Sorry.. got distracted and forgot where I was!
I think I get the basic picture... but
I think maybe we need more details of your system to be of any more help..
-steve
as
Steve Spicklemire schrieb:
Well, the good news is you have a reproducable symptom
I've had several folks ask for some ZPatterns examples with SQL. I've
*finally* gotten around to providing them.
They're at: http://www.zope.org/Members/sspickle
The first is a school attendance application 'skeleton' with the
following description:
An example of ZPatterns using SQL. Gadfly
Hi Ulrich,
Hmm.. can you just call DataSkin.__init__(self, id) in the File's constructor?
-steve
Ulrich Eck wrote:
Hello .. sorry I bother you again with my ZPatterns
related Questions ..
I just try it once again ;-)
I have a Folder w/Customizer in that I want to store
Hi -dev folk..
I ha(d) a problem where DateTime was basing the local timezone on
time.tzname, and getting it wrong. (tzname comes from the abbreviation,
which in Indiana is 'EST', but DateTime really wants 'US/East-Indiana'.
So.. I patched DateTime as follows.. I saw a proposal in the archives
Hi Robert,
Sorry.. ZCVSFolder is not supported for Windows. Patches accepted!
-steve
Robert Rottermann wrote:
Hi there,
I installed the newest version of ZCVSMFolder on my windowsbox.
As it uses fork it can not work. However I used a former version under
windows. Is this not
Has anyone seen anything like this?
I have the following script in a Specialist:
## Script (Python) deleteAllTracks
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
trackMaster=context.Tracks
)
dList=[]
for id in iList:
theItem=trackMaster.getItem(id)
theItem.manage_delete()
dList.append(id)
return (OK! deleted %i elements % len(iList)) + string.join(iList,',')
On Wednesday, May 23, 2001, at 10:59 AM, Steve Alexander wrote:
Steve Spicklemire
Hi Phil,
Yup.. I realized it when I could *list* all the ids, but not delete
them. ;-) I'm wondering if it might be better to change the
implementation of getPersistentItemIDs to return a plain list? This
would also help avoid permission errors that folks run in to when trying
to use it in
Hi John,
Makes sense to me! I'm guessing eval was used since it's a little
simpler not to have to keep track of both the string expression and
the compiled expression.. but that's just a guess. However it does
bring up a point I've been wondering about anyway. Now that Ty and
Phillip have
Hmm.. anybody seen this?
-steve
cc -fpic -I../Components/ExtensionClass/src -I../Components/BTree -I./ZODB -O -pipe
-D_THREAD_SAFE -I/usr/local/include/python1.5 -I/usr/local/include/python1.5
-DHAVE_CONFIG_H -c ./../Components/BTree/BTree.c
./../Components/BTree/BTree.c: In function
Hi Fred,
"Fred" == Fred Wilson Horch [EMAIL PROTECTED] writes:
Fred Wanted to follow up on Steve's points.
Fred I don't know if we need just one serialization interface
Fred that tries to solve all five issues.
Ok..
Fred We currently have two serialization interfaces in
Hi Fred,
"Fred" == Fred Wilson Horch [EMAIL PROTECTED] writes:
Fred Steve Spicklemire wrote:
I'm looking at all this from the perspective of someone who is
using the current xml/zexp code to manage objects in CVS today
Fred Can you tell me how you do that? Our b
Hi Folks,
I posted this to the Wiki... but it's not "in-your-face" like email,
so I never know if anyone reads it. Here are a few, possibly random,
but nonetheless concrete, thoughts of mine on the matter. I'm looking
at all this from the perspective of someone who is using the current
xml/zexp
Hi Lex,
This is a little bit of a tricky question. Here is what I think is the
*intent* of ZPatterns. The details of storage are to be left up to the
implementor/integrator. Given that they are the only ones who really know where
all the goodies are hidden (sql? zodb? etc.. ) your app
Hi Johan,
I wrote:
The best way I've found is to provide a method (or methods) in the
Specialist of the contained item to get ids of those instances satisfying certain
criteria...
e.g., getToDoIdsForDoer( aDoer )
(the contained item keeps a reference to the id of its container.)
Hi Roche,
In all simplicity I still can't get it to work but here's some more info
from the console:
Traceback (innermost last):
File
C:\PROGRA~1\ZOPE230\lib\python\Products\ZPatterns\AttributeProviders.py,
line 335, in _AttributeFor
(Object: GAPMixin)
File
Hmmm...
tripTriggers(...)
pullTriggers(...)
fireTriggers(...)
;-)
dunno... kickTriggers works for me...
-steve
"SA" == Steve Alexander [EMAIL PROTECTED] writes:
SA I've patched DataSkins.py to add this method:
...
SA I'd welcome suggestions on a better name for the method
If you bump maxusers up to 64 (from the default 32) and rebuild
the kernel the messages should go away... it's worked for me.
-steve
"RDM" == Zope mailing lists [EMAIL PROTECTED] writes:
RDM On Wed, 14 Feb 2001, Sin Hang Kin wrote:
When starting Zope2.3 from the freebsd box, the
Another you might consider (though Shane's is great, but
required Tkinter, which not everybody (me!) has really easy
accesss to... ) is the more browser based, but less flexible:
http://www.cyberclip.com/webdebug/
-steve
"SA" == Steve Alexander [EMAIL PROTECTED] writes:
SA Tim
Take a look..
http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/C0FFC7204901563A
-steve
"MM" == =?iso-8859-1?Q?Max M=F8ller Rasmussen?= iso-8859-1 writes:
MM From: Chris McDonough [mailto:[EMAIL PROTECTED]]
This is not true. The behavior is the same as before... the
Hi Itai,
I'm sure there's something clever you could do here with
an attribute provider for you user object that supplied
__roles__ dynamically somehow, but I'd need to think
about that more... one easy way to limit who can
see different stuff is to use a wrapper around
your access methods
Well proxy_receiver seems to set it's terminator to 'None', which
seems to indicate that the dispatcher should just send it all as it
comes without checking for any special terminator (which is indeed
what appears to be happening!) The problem is that this dispatcher
code:
def recv
I'm going to try to make a long story short... and the story isn't even
over... but I'm getting close. One of our clients is a 'multimedia'
company and we're working with a group there that consists mostly
of artists and designers who use tools like photoshop and
macromedia director. They came
Hi Lee,
You could use a dictionary for this:
vars = {}
while (p!=0):
vars['p'+`p`] = string.replace(component[control], ",", "")
p=p-1
control=control+1
then 'vars' will contain keys (e.g., 'p1', 'p2' etc.. ) and corresponding values.
If that's totally not what
In it's current released form ZCVSMixin really does help with
a lot of the configuration/process problems in developing
with Zope. You can still 'grep' for stuff, and it is
possible to perform simple edits in the xml representation
without much fear of actually breaking anything (it's pretty
Hmmm.. I use emacs/ange-ftp all the time with zope... many
versions.. with no trouble. Have you tried that? Since my
client is not 'X' (yet) I don't use xemacs...
-steve
"glw" == Geoffrey L Wright [EMAIL PROTECTED] writes:
glw I'd LOVE to be able to use efs with Zope. Right now I end
Hi Loren,
There is also Zieve:
http://www.zope.org/Members/sspickle/Zieve
Not quite as easy as a 'fixed' dtml-in ... but it
does work (today).
-steve
"Loren" == Loren Stafford [EMAIL PROTECTED] writes:
Loren On 02 July 2000, Adam Karpierz, posted a patch that would
Loren
Hi Andy,
I'm not sure what you mean by 'interface/way', so.. I'm going to
guess at two possible interpretations.
1) Basically ZPatterns allows you to define classes (DataSkins)
instances of which can optionally be used to view/create/change/delete
external data through methods of the class
I think probably Javascript is the 'cleanest' solution in this case,
but depending on the complexity of your UI another non-JS approach is
to make every link target the topmost frome (e.g., target="_top") and
redraw all frames in the frameset on each 'click'. This way you know
that all frames
Did you move this Zope from it's original location in /usr/local/zope?
I'm guessing you did.. and those paths are in the .pyc files.
try:
find /usr/local/EcoZope -name "*.pyc" -delete
then (optionally) rerun w(o?)_pgci.py which will (among other things)
rebuild the .pyc files. If you don't,
How about this:
dtml-call "REQUEST.set('userid', 979226100)"
dtml-with "_[userid]"
dtml-var attribute
/dtml-with
or
dtml-call "REQUEST.set('userid', 979226100)"
dtml-with "_.getitem(userid)"
dtml-var attribute
/dtml-with
-steve
Hi,
a small problem!,
This works:
dtml-with 979226100
Sorry.. it's my fault for not providing better docs.. sadly
it's not been something I've had time for... esp since all the
ZPatterns changes were added.
1) Create ZClasses for your MarketItems, Baskets, BasketItems and Shoppers
(be sure to subclass from ZPatterns:DataSkin)
2) In the Racks
led to use Emarket
James 0.1.04b1? I thought Zpatterns was only needed for EMarket
James 0.2.
James Jamey
James -Original Message----- From: Steve Spicklemire To:
James [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
James Sent: 1/8/2001 4:25 PM Subject:
Dirksen dtml-call "_ZClass_for_DataSkin.manage_delete()"
Dirksen Zope refuses the upload of the dtml method all together!
Dirksen Any clues?
Dirksen Dirksen
Dirksen --- Steve Spicklemire [EMAIL PROTECTED] wrote:
Hi Dirksen,
In python you would normally do:
super_c
Hi Steve,
Could you let some other value represent no car? (e.g., _.None?).
untested...
WITH CompanyCars.getCar(self.car_id) or NOT_FOUND COMPUTE
car=RESULT,
car_registration=registration
OTHERWISE LET
car=_.None
car_registration="no car"
WHEN OBJECT CHANGED CALL
Hi Lee,
Two points: 1) DTML works fine in ZSQL methods and 2) Due to (1)
you can use dtml-var xxx and pull in anything from Zope that you
like (but be careful... since someone might be able to pull in
something you weren't thinking of when you set up the method:
e.g., if you have a method
Hi Steve,
Hmm.. is the 'id' of your PythonScript also getattr?
thanks,
-steve
"Steve" == Steve Alexander [EMAIL PROTECTED] writes:
Steve Steve Alexander wrote:
Let's say I have a DataSkin-derived ZClass that has the
attribute "forename" (in a dataskin attribute
Hi Dirksen,
In python you would normally do:
super_class_object.manage_delete(self)
but it might be easier/better in the case of a DataSkin
to use a SkinScript 'WHEN OBJECT DELETED xxx '.
-steve
"Dirksen" == Dirksen [EMAIL PROTECTED] writes:
Dirksen I have a ZClass
Hi Chris,
"Chris" == Chris Withers [EMAIL PROTECTED] writes:
Chris Steve Spicklemire wrote:
I think that if you make your DataSkins folderish it will be
hard to make the storage anything other than ZODB.
Chris Well, I don't mind the 'skins' being stored i
Hi Jerry,
You could remove the adaptor Product from Zope the Zope Products
folder and restart, the object will be broken, but deletable, then
restore the Product and restart Zope.
-steve
"Spicklemire," == Spicklemire, Jerry [EMAIL PROTECTED] writes:
Spicklemire, Hi
Hi Chris,
Random thoughts follow. ;-)
I think that if you make your DataSkins folderish it will be hard
to make the storage anything other than ZODB. However, Steve
Alexander posted a neat trick the other day where __bobo_traverse__ is
supplied by an attribute provider. You could use this
Hi Itai,
"Itai" == Itai Tavor [EMAIL PROTECTED] writes:
Itai Steve Spicklemire wrote:
Hi Folks,
The Dumb ZPatterns example is updated. Now there is some more
blah blah blah
Itai Nice work, Steve.
Thanks!
Itai Removing id lists looks good.
Hi Dirksen,
I think the problem you are having has to do with using 'getItem'.
From the SkinScriptSyntax Wiki page:
"If the RESULT is NOT_FOUND, the search for the attribute value falls
through to the next declaration (or attribute provider if the SkinScript
is finished). If there is an
Hi Folks,
The Dumb ZPatterns example is updated. Now there is some more
realistic object referencing going on, borrowing of code snippets
between Specialists and suchlike. There is also more in the way of
reasonable documentation, though everything is in flux, and it still
doesn't resemble
Hi Dirksen..
try this:
WITH Deliverables.getItem(self.id) COMPUTE name=((RESULT is _.None) and 'none
available') or RESULT.name
What are you using as the 'load by accessing attribute' attribute?
-steve
___
Zope maillist - [EMAIL PROTECTED]
Hi Andreas,
You might try this: Start Zope in debug mode (./start -D ). Then in your __init__...
class AJFile:
def __init__(self):
import pdb
pdb.set_trace()
self.d = {}
Zope will stop in the debugger. Step through with the debugger and see where things are
going
Hi Andreas,
I would be really surprised if this were a python problem.
Are you using any other extensions with your product? Can you
post a more complete set of code that shows how this constructor
is really called? It sounds like the heap is getting corrupted
somehow, maybe a bad
Hi Itai,
Good idea! I'll try to add this to the example.
thanks!
-steve
Itai P.S. I've been struggling with a problem that might get
Itai cleared up if you added it to the example:
Itai Say you want to allow a user to add a ToDo from the
Itai Deliverable screen (in
Jason ___
Jason Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']
Jason Steve Spicklemire [EMAIL PROTECTED] wrote:
Have you seen: http://www.zope.org/Members/sspickle/MacOSXBHFS
Zope-2.3a1 runs with Python-1.5.2. I've run
"Jim" == Jim Harrison [EMAIL PROTECTED] writes:
Does anyone know what Apple's plans are for MacOSX introduction
Jim haven't found a source for a compiled 1.5.2. I've tried to
Jim follow Steve's directions for the 1.5.2 build at
Jim
Hi Itai,
"Itai" == Itai Tavor [EMAIL PROTECTED] writes:
Itai I'm already using globally unique ids, but still, doesn't
Itai using the same id for the Participant and the Actor make
Itai these objects too tightly coupled? Seems to me that Actors
Itai should provide an interface
Hi Jason,
Have you seen: http://www.zope.org/Members/sspickle/MacOSXBHFS
Zope-2.3a1 runs with Python-1.5.2. I've run Zope-2.2.x on MacOSX
and it runs great. At some point someone with time, or a paying customer,
or both will get an Open Database (MySQL, PostegreSQL, ... ) running on
MacOSX
myName
hr
Description:dtml-var myDescriptionbr
hr
I'm due: dtml-var dueDate
dtml-var standard_html_footer
and all is working OK. What ZClass are you using for your instances?
-steve
"Steve" == Steve Spicklemire [EMAIL PROTECTED] writes:
Steve Hi Dirksen,
Steve Hmm.. this i
Hi Dirksen,
For your 'otherwise' case, could you have a single instance
that serves as an 'unknown' object:
WITH Deliverables.getItem(self.id) COMPUTE
originalObject=RESULT or NOT_FOUND
OTHERWISE originalObject=Deliverables.getItem('Unknown')
where it is known that the Deliverables
Hi Dirksen,
Did you say you were using 0.4.3b1 or b2? I think that
this sounds like the bug from b1:
http://lists.zope.org/pipermail/zope-dev/2000-October/007650.html
-steve
"Dirksen" == Dirksen [EMAIL PROTECTED] writes:
Dirksen One more question, i.e. the following expression
Hi Morten,
There are two ways to subclass products. You can use straightforward
Python subclassing:
e.g.,In your custom Product.. here is an example from Zwiff:
import Products.PythonMethod.Guarded
from Globals import HTMLFile, MessageDialog
from App import Common
Hi Deiter,
Hmm.. I just tried this with my highly experimental product
(LocalProc 0.0.1) and I didn't observe the same effect that you did
behind my Proxy Server. (I normally run with Rewrite... but when I got
your note I tried ProxyPass and it worked on the first try.)
(Good howto Anser!
Hi Dirksen,
Ok.. you need to set the 'load by accessing attribute' field
to 'original_object'. You may need to change your SkinScript to
something like:
WITH getMale(self.id) COMPUTE original_object=(RESULT is _.None) and NOT_FOUND or
RESULT
So that when getMale returns _.None, the
Hi Dirksen,
Hmm... why not have the query that gets data qualify by gender:
SQL Query: getMemberByGender
parameters member_id, gender
select * from members where
dtml-sqltest member_id type=string and dtml-sqltest gender type=string
Then in the SkinScript for maleMemberRack:
WITH
Hi Dirksen,
Forgot to mention... you should probably choose some attribute other
than 'id' as the attribute to check for your DataSkin. The 'id' attribute
is always there...
-steve
"Steve" == Steve Spicklemire [EMAIL PROTECTED] writes:
Steve Hi Dirksen,
Steve
This set works for me:
--
WHEN OBJECT ADDED CALL sqlInsertProduct(client_name=self.id,
email=self.email, rate=self.rate, last_payment=self.last_payment,
primary=self.primary, services=self.services)
WHEN OBJECT CHANGED
Hi Itai,
"Itai" == Itai Tavor [EMAIL PROTECTED] writes:
Itai "OrderingEntities.getItem(some_id).current_order_id)" shows
Itai me the value of current_order_id of the Employee object
Itai some_id. But I can't figure out how to change the property
Itai so it get changed in the
Hi Itai,
"Itai" == Itai Tavor [EMAIL PROTECTED] writes:
Itai Say I got several Participants, and some of those need to be
Itai able to place orders. I create the Specialist
Itai OrderingEntities to implement the role of 'someone who
Itai places orders'. From what I understand
Hi Hung Jung,
Did you set a 'Host' header in your request? Is
the request going straight to ZServer, or through
Apache? (Also... do you have a SiteRoot?) These can
all affect how the request is handled by the server...
It woould be interesting to try urllib, rather than
httplib since it
Hi Hung,
No! Urllib does that too!
import urllib
x = urllib.urlopen('http://user:pass@host:8080/path/to/get')
print x.read()
-steve
"Hung" == Hung Jung Lu [EMAIL PROTECTED] writes:
Hung From: "Steve Spicklemire" [EMAIL PROTECTED]
Did you set a 'Host' he
wget?
-steve
"michael" == michael angelo ruberto [EMAIL PROTECTED] writes:
michael what i meant was, is there a way to remove my files in
michael Zope back to the filesystem? i'm having serious concerns
michael about the stability of this product and need to know if i
michael
It might be interesting to turn on the -M option of z2.py and see if
there is any pattern to the crash. This can happen for a number of
reasons (e.g., a buggy Python extension, an infinite recursive loop,
).
-steve
"Michael" == Michael Best [EMAIL PROTECTED] writes:
Michael I have
Hi Itai,
"Itai" == Itai Tavor [EMAIL PROTECTED] writes:
...
Itai The 2nd way seems to go better with OO principles - all
Itai handling of photos is delegated to the Photos Specialist and
Itai the Product doesn't care if the photo exists or not, or
Itai where it comes from.
Thanks Roche!
"RC" == RC Compaan [EMAIL PROTECTED] writes:
RC Hi Steve
RC I'm also a babe in the woods when it comes to object
RC modelling, but here's my pennie's worth. Since code
RC generation was not really required in the models I recently
RC did for Zope Apps and
I keep my own CVS'ed versions of ZPatterns and PlugIns so I can
patch/change with a little control. For my own convenience I
put a build.py file in the ZPatterns directory and my usual
sequence is:
cvs co ZPatterns
cvs co PlugIns
cd ZPatterns
python build.py
this way I don't have to think
Thanks... I'm pretty sure now that what I was was pthreads/popy
related. I didn't realize there was a new/updated PoPy/ZPoPyDA on the
zope site with lots of thread related (sem_init, sem_wait,... )
changes so I built it on my FreeBSD boxen and haven't seen the same
behavior since.
-steve
P.S.
Hmm.. I *know* I've seen this before. I think it was when I was trying
to move ZClasses that were *created* under Zope 2.2.0+ to Zope 2.1.x.
Are you sure you're working with 100% 2.2.4?
-steve
"Brad" == Brad Clements [EMAIL PROTECTED] writes:
Brad Selecting the Security Tab on a Wampum
Norm... 'services' is an NT concept. Just run the bat file from the
command line.
-steve
"Norm" == Norm LaDuke [EMAIL PROTECTED] writes:
Norm I have installed Zope on a 300Mhz K6 machine with 92 Megs of
Norm RAM running Windows 98. It seemed to install ok except that
Norm it
Hi Ruediger,
You might consider ZPatterns. It allows you to develop
applications with ZODB, and then, later, 'easily' switch to
other forms of attribute storage for your objects.
-steve
"Alexander" == Alexander DePauli [EMAIL PROTECTED] writes:
Alexander Hi Zopistas!
Alexander
How about:
dtml-var "theQuery(REQUEST=REQUEST, src__=1)"
-steve
"Oliver" == Oliver Bleutgen [EMAIL PROTECTED] writes:
Hi listies,
something strange is happening with my ZSQL methods. I have a
huge query that works great when testing it in the
management-interface - it
I'm trying to get a list of lists using ZSQL Methods...
I have two related tables, hounds and items.
I want to get the hound_id in items like this but can't work out how to pass
the hound_id variable...
dtml-in get_hounds
bdtml-var name dtml-var id/b
dtml-in
Hi Andy,
"Andy" == Andy McKay [EMAIL PROTECTED] writes:
There are now all manner of Dreamweaver extensions, both
Andy I tried it briefly and found that Dreamweaver cant seem to
Andy handle a file with no extension such as index_html, so gave
Andy up.
Yes.. it's apparently
machinery. However, 'sort' short-curcuits the machinery so that you
can 'handle' them (in this hack, you store them in a simple python
list). Anyway.. it's not clear it's a bug worth fixing... if it's
a bug at all.
-steve
"Chris" == Chris Withers [EMAIL PROTECTED] writes:
C
Hmm... since triggers are done at transaction commit time, could
it be that the 'change' trigger doesn't happen if the change
occurs on the same transaction as an 'add'?
-steve
"bentzion" == bentzion [EMAIL PROTECTED] writes:
bentzion This simple issue is driving me crazy... I am
Hi Lee,
I'm not sure if this will help.. but I do know that I routinely build
Zope on multiple FreeBSD systems and it has never caused a problem like this.
Did you build your own python, or use a port? What flavor of BSD? I've never
had to edit Makefile.pre.in or do.py on FreeBSD 3.x, or
Hmm.. I think there is a method of a ZSQL result object called 'names'..
Here is a snippet from some working code:
dtml-let specificTypes="getTypes(ttid=type, name='', tttype='')"
theNames="specificTypes.names()"
where 'getTypes' is a ZSQL Method and theNames is the list of column
Hi Roch,
The whole traceback would be helpful.. one clue:
Error Type: TypeError
Error Value: hasattr, argument 2: expected string, int found
'hasattr' is the function that is complaining do you use
it in your code?
-steve
"Roch'e" == Roch'e Compaan [EMAIL PROTECTED] writes:
Hmm... OK ... next question... what are you doing *in* the 'in' tag?
Somehow you're trying to access an object contained in an
object manager (one of your modules?) and you're using an
'int' rather than a string as an id. Can you post the code?
thanks,
-steve
"Roch'e" == Roch'e Compaan
Urp.. yes. sorry!
Thanks!
-steve
"Rik" == Rik Hoekstra [EMAIL PROTECTED] writes:
OK.. The new ZPatterns Example is up there now off to fix
some EMarket problems
Rik for which the secret url is:
Rik http://www.zope.org/Members/sspickle/DumbZPatternsExample
Hmmm... er.. it's just page with a picture and some text there's
nothing zopey at all... I (almost) never run IE or Windowsso
I'll dig around here and see if I can reproduce it it's wierd
though.. it's just simple html!
Does the app part work for you?
-steve
"jimbo" == jimbo
Hi Roch'e,
I'm guessing that getAllContactsForCustomer is a "DTML Method". If
I remember correctly the third argument is a 'mapping object' that can
be used to augment the effective namespace available to the
method. Passing _.None should do nothing (I'm guessing you could just
use
Hi Ben,
GAPs are sort of deprecated at this point in favor
of SkinScript. In SkinScript you might do something like this:
WITH accounts.getItem(self.account_id) COMPUTE account_object=RESULT
or more carefully...
WITH accounts.getItem(self.account_id) COMPUTE account_object=(RESULT is
For those who are paying attention ;-) there are new releases of
Zwiff and ZCVSMixin at zope.org. There will be a new DumbZPatternsExample
later today or tomorrow...
The Zwiff release has been updated with the latest patches of ming and
now has lots of working examples. You download the
A number of folks have asked me about ming-0.0.4 and Zwiff. I have
just uploaded a new Zwiff that uses ming-0.0.4+ (there is actually a
full ming distribution this time with all the patches needed to work
with Zwiff.)
Let me know how it goes!
http://www.zope.org/Members/sspickle/Zwiff
-steve
Hmm.. How about something like:
dtml-let random_image="_.whrandom.choice(objectValues('Photo'))"
dtml-var random_image
dtml-if "_.hasattr(random_image,'caption')"dtml-var
"random_image.caption"/dtml-if
/dtml-let
-steve
___
Zope maillist -
Hi Robin,
ZCVSMixin works with ZClasses. It's a little cumbersome at the
moment due to the Container/Contained problem and others:
http://dev.zope.org/Wikis/DevSite/Proposals/SynchronizationMechanismZCVSMixin
But it does manage ZClass method and properties on the filesystem.
You do need to
1 - 100 of 184 matches
Mail list logo