Edit detail for GeneralDiscussion revision 110 of 541

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541
Editor: FLUID
Time: 2007/11/30 16:32:05 GMT-8
Note: DELIVERY NOTICE

added:

From FLUID Fri Nov 30 16:32:04 -0800 2007
From: FLUID
Date: Fri, 30 Nov 2007 16:32:04 -0800
Subject: DELIVERY NOTICE
Message-ID: <E1IyGGt-0005UU-Dt@an.site5.com>

You are receiving this message because you sent an e-mail to stephan@whyfluid.com.

If your message is personal, you should update your address book. Stephan's personal e-mail address is stephan@pluckcreative.com. But don't worry, your message has been automatically forwarded that address. 

If your message is is regarding FLUID work, relax. It's also been automatically forwarded to Jacob  and Kyle(at)whyfluid.com.

Have a groovy day.


This page is the easiest way to get involved in Zwiki discussions. Post any questions or comments using the comment form at the bottom of the page. Click subscribe if you'd like to receive (and send) comments by email. For the discussion archives, and other ways to discuss Zwiki, see AboutZwikiDiscussion?.

Another Z*wiki! --DeanG?, Mon, 05 Nov 2007 06:33:47 -0800 reply

http://www.mooseyard.com/Jens/2007/11/review-zackandwiki/ Good for a couple chuckles. :-)

Captcha --flemmingbjerke, Mon, 05 Nov 2007 19:08:14 -0800 reply

I try to make a captcha for zwiki by adding a captchatest to checkSufficientId in Utils.py. However, I am unable to fetch the user inserted code from checkSufficientId. The REQUEST object does not seem to have any form variables, which I don't really understand.

Captcha --betabug, Tue, 06 Nov 2007 00:23:31 -0800 reply

Hmm, I can't confirm this, I've placed a line with print REQUEST.form in checkSufficientId() and it printed out the form fields just fine. It wouldn't make any sense if checkSufficientId() did not have a REQUEST, as we are trying to get the username from the REQUEST in there.

Are you perhaps running this from unit tests? In the test environment we do not always have a real request.

Captcha --flemmingbjerke, Tue, 06 Nov 2007 15:07:42 -0800 reply

Yes, you are right, but. If I change checkSufficientId (where capcode is the code inserted):

def checkSufficientId(self, REQUEST=None):
    REQUEST = REQUEST or getattr(self,'REQUEST',None)
    print REQUEST.form.get('capcode')
    return (self.requestHasUsername(REQUEST) or
            not getattr(self,'edits_need_username',0))

And I start zope with runzope. Then I get:

  • gggggggggggg
  • None
  • None
  • None
  • None
  • None
  • None
  • (ggggggggg is the capcode inserted).
  • None

Here I use Plone where I have put captcha in the comment template in portal_skins. If I insert "print REQUEST.form" and uses a zwiki outside Plone, I get:

  • {'comment': 'add a comment', 'subject_heading': 'dddddddddvvvvvvvvvvvv', 'timeStamp': '1194319308.35', 'use_heading': '1', 'text': 'vvvvvvvvvvvvvvvvvv', 'in_reply_to': '', 'page': 'WikiWikiWeb?'}
  • {}
  • {}
  • {}
  • {}
  • {}
  • {}
  • {}

Probably, here is the reason why I have problems. I seems like a comment implies that checkSufficientId is run 8 times, where only the first time has a proper REQUEST object. This means that a successful captcha test would be wiped out 7 times. (I use zwiki-0.59 because I still use Plone-2.5.3.)

Captcha --betabug, Wed, 07 Nov 2007 00:16:15 -0800 reply

OK, now I think I understand better what you are trying to do. I tried out the same print REQUEST.form and noticed the following:

  • when I'm logged in (e.g. as manager in the ZMI), it prints out 7 results for each page view and another (8th) if I add a comment
  • when I'm not logged in, it prints nothing on normal page requests, and one result if I add a comment

(This is on an almost completely closed down test wiki, on an open wiki more prints will happen for anonymous users.)

Conclusion 1: Some places in the page rendering code check privileges and "sufficient ID" status to decide if displaying user interface elements. This might be slightly inefficient, but I doubt it - we're getting stuff from REQUEST, which is straightforward.

Conclusion 2: You seem to try to return False if your captcha code is not found - and since for a logged in user that code is not found quite often, all kind of stuff stops working.

Conclusion of the conclusions: Your approach is wrong, you are inserting your captcha test in the wrong place. Instead of extending checkSufficientId, better make a new method checkCaptchaCode and place a single check of that method in the relevant spot (somewhere in Editing.py, where checkSufficientId is used).

If you need help with this (of anyway it would be useful I'd say), please open a new issue with severity "wishlist" and we should bring the discussion there. Also feel free to come to #zwiki on freenode and I might help you there in (more or less) realtime.

Captcha --flemmingbjerke, Wed, 07 Nov 2007 13:50:06 -0800 reply

Using checkCaptchaCode 8 or 7 each time you edit or add a comment, isn't it overkill?

I have opened a new issue: [#1395]?.

Installing on Windows --BrianKennison?, Wed, 07 Nov 2007 15:13:15 -0800 reply

Hey everyone,

I was trying to help some people today who need/want a wiki but they have to work on Windows. I told the person that I'd come and help and was thinking it would be a breeze. Well...

Zope installed easily (package by Enfield Systems) but getting ZWiki? upacked was hard. Rather than having to deal with a gnu zip/unix tar file (.tgz) I was wondering how much trouble it would be to put up a Windows friendly archive?

I tried Winzip today but the free version didn't want to convert the file. I tried 7-z but no luck there. I finally installed cygwin just to unpack ZWiki?.

What do you think?

-- Brian Kennison

Installing on Windows --FrankLaurijssens?, Wed, 07 Nov 2007 23:07:18 -0800 reply

Two things:

1 when you download the file with Internet Explorer, make sure you do save it as a .tgz file, because IE tends to change the extension to .tar.tar. It does that based on MIME type and it really shouldn't.

2 At least WinRAR?, but I thought WinZip? as well, can unpack .tgz files. The evaluation version of WinRAR? works fine.

Installing on Windows --BrianKennison?, Thu, 08 Nov 2007 06:36:24 -0800 reply

I didn't notice that IE was changing the extension to tar. Winzip would try to open it but complain about the headers. Winzip opens it fine with the tgz extension. Thanks for the tip. --Brian

Paul Shippam is out of the office. --pshippam, Fri, 30 Nov 2007 16:01:21 -0800 reply

I will be out of the office starting 30/11/2007 and will not return until 06/12/2007.

I will respond to your message when I return.


http://www.dstinternational.com

Notice: This e-mail and any attachments are intended only for the individual or company to which it is addressed and may contain information which is privileged, confidential and prohibited from disclosure or unauthorized use under applicable law. If you are not the intended recipient of this e-mail, you are hereby notified that any use, dissemination or copying of this e-mail or the information contained in this e-mail is strictly prohibited by the sender.

Whilst we run anti-virus software on all internet e-mails we are not liable for any loss or damage. The recipient is advised to run their own anti-virus software.

If you have received this transmission in error, please return the material received to the sender and delete all copies from your system. Thank you.

DST International Limited is a company registered in England and Wales with company number 1772349. DST International Group Services Limited is a company registered in England and Wales with company number 5211646. DST International Billing Limited is a company registered in England and Wales with company number 4370287. DST International Output Limited is a company registered in England and Wales with company number 4220397. The registered office for all the above mentioned companies is: DST House, St Mark's Hill, Surbiton, Surrey, KT6 4QD, England.

DELIVERY NOTICE --FLUID, Fri, 30 Nov 2007 16:02:11 -0800 reply

You are receiving this message because you sent an e-mail to stephan@whyfluid.com.

If your message is personal, you should update your address book. Stephan's personal e-mail address is stephan@pluckcreative.com. But don't worry, your message has been automatically forwarded that address.

If your message is is regarding FLUID work, relax. It's also been automatically forwarded to Jacob and Kyle(at)whyfluid.com.

Have a groovy day.

DELIVERY NOTICE --FLUID, Fri, 30 Nov 2007 16:03:09 -0800 reply

You are receiving this message because you sent an e-mail to stephan@whyfluid.com.

If your message is personal, you should update your address book. Stephan's personal e-mail address is stephan@pluckcreative.com. But don't worry, your message has been automatically forwarded that address.

If your message is is regarding FLUID work, relax. It's also been automatically forwarded to Jacob and Kyle(at)whyfluid.com.

Have a groovy day.

DELIVERY NOTICE --FLUID, Fri, 30 Nov 2007 16:30:07 -0800 reply

You are receiving this message because you sent an e-mail to stephan@whyfluid.com.

If your message is personal, you should update your address book. Stephan's personal e-mail address is stephan@pluckcreative.com. But don't worry, your message has been automatically forwarded that address.

If your message is is regarding FLUID work, relax. It's also been automatically forwarded to Jacob and Kyle(at)whyfluid.com.

Have a groovy day.

DELIVERY NOTICE --FLUID, Fri, 30 Nov 2007 16:31:04 -0800 reply

You are receiving this message because you sent an e-mail to stephan@whyfluid.com.

If your message is personal, you should update your address book. Stephan's personal e-mail address is stephan@pluckcreative.com. But don't worry, your message has been automatically forwarded that address.

If your message is is regarding FLUID work, relax. It's also been automatically forwarded to Jacob and Kyle(at)whyfluid.com.

Have a groovy day.

DELIVERY NOTICE --FLUID, Fri, 30 Nov 2007 16:32:04 -0800 reply

You are receiving this message because you sent an e-mail to stephan@whyfluid.com.

If your message is personal, you should update your address book. Stephan's personal e-mail address is stephan@pluckcreative.com. But don't worry, your message has been automatically forwarded that address.

If your message is is regarding FLUID work, relax. It's also been automatically forwarded to Jacob and Kyle(at)whyfluid.com.

Have a groovy day.