ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: devel@lists.altlinux.org
Subject: [devel] [alterator] синхронность activity
Date: Fri, 11 May 2012 07:38:56 +0300
Message-ID: <20120511043856.GT30123@osdn.org.ua> (raw)

	Здравствуйте.
Помогите сняться с ручника:

(extra-button (when clicked
                (begin
                  (format #t "HERE1\n")
                  (extra-button activity #f)
                  (form-update-activity '("extra-button") #f)
                  (format #t "HERE2\n")
                  (commit-interface)
                  (format #t "HERE3\n")
                  )))

Кнопка деактивируется уже после возврата commit-interface,
которое представляет из себя ходока в бэкенд:

(define (commit-interface)
  (catch/message
    (lambda()
      (woo-write "/backend" 'var (form-value "var")))))

Т.е. в выводе наблюдаю:

HERE1
HERE2
[выполнение команд бэкендом]
HERE3

...и при этом на HERE2 extra-button нажимабельная,
а после HERE3 -- уже нет.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


             reply	other threads:[~2012-05-11  4:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-11  4:38 Michael Shigorin [this message]
2012-05-11  8:39 ` Lenar Shakirov
2012-05-11  9:34   ` Paul Wolneykien
2012-05-11 10:52     ` Lenar Shakirov
2012-05-11 10:56       ` Paul Wolneykien
2012-05-11 16:02         ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120511043856.GT30123@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git