Merge pull request #2565 from schedutron/optionstypo
Fix typo in Class Scheduling Python Example
This commit is contained in:
commit
ed768944c6
|
@ -229,7 +229,7 @@ Furthermore, this version can only be called with a ``Database``, making it impo
|
|||
Note that by default, the operation will be retried an infinite number of times and the transaction will never time out. It is therefore recommended that the client choose a default transaction retry limit or timeout value that is suitable for their application. This can be set either at the transaction level using the ``SetRetryLimit`` or ``SetTimeout`` transaction options or at the database level with the ``SetTransactionRetryLimit`` or ``SetTransactionTimeout`` database options. For example, one can set a one minute timeout on each transaction and a default retry limit of 100 by calling::
|
||||
|
||||
db.Options().SetTransactionTimeout(60000) // 60,000 ms = 1 minute
|
||||
db.Options().SetRetryLimit(100)
|
||||
db.Options().SetTransactionRetryLimit(100)
|
||||
|
||||
Making some sample classes
|
||||
--------------------------
|
||||
|
|
|
@ -157,7 +157,7 @@ If instead you pass a :class:`Transaction` for the :class:`TransactionContext` p
|
|||
Note that by default, the operation will be retried an infinite number of times and the transaction will never time out. It is therefore recommended that the client choose a default transaction retry limit or timeout value that is suitable for their application. This can be set either at the transaction level using the ``setRetryLimit`` or ``setTimeout`` transaction options or at the database level with the ``setTransactionRetryLimit`` or ``setTransactionTimeout`` database options. For example, one can set a one minute timeout on each transaction and a default retry limit of 100 by calling::
|
||||
|
||||
db.options().setTransactionTimeout(60000); // 60,000 ms = 1 minute
|
||||
db.options().setRetryLimit(100);
|
||||
db.options().setTransactionRetryLimit(100);
|
||||
|
||||
Making some sample classes
|
||||
--------------------------
|
||||
|
@ -444,7 +444,7 @@ Here's the code for the scheduling tutorial:
|
|||
fdb = FDB.selectAPIVersion(620);
|
||||
db = fdb.open();
|
||||
db.options().setTransactionTimeout(60000); // 60,000 ms = 1 minute
|
||||
db.options().setRetryLimit(100);
|
||||
db.options().setTransactionRetryLimit(100);
|
||||
}
|
||||
|
||||
// Generate 1,620 classes like '9:00 chem for dummies'
|
||||
|
|
|
@ -126,7 +126,7 @@ If instead you pass a :class:`Transaction` for the ``db_or_tr`` parameter, the t
|
|||
Note that by default, the operation will be retried an infinite number of times and the transaction will never time out. It is therefore recommended that the client choose a default transaction retry limit or timeout value that is suitable for their application. This can be set either at the transaction level using the ``set_retry_limit`` or ``set_timeout`` transaction options or at the database level with the ``set_transaction_retry_limit`` or ``set_transaction_timeout`` database options. For example, one can set a one minute timeout on each transaction and a default retry limit of 100 by calling::
|
||||
|
||||
@db.options.set_transaction_timeout(60000) # 60,000 ms = 1 minute
|
||||
@db.options.set_retry_limit(100)
|
||||
@db.options.set_transaction_retry_limit(100)
|
||||
|
||||
Making some sample classes
|
||||
--------------------------
|
||||
|
|
|
@ -136,7 +136,7 @@ If instead you pass a :class:`Transaction` for the ``tr`` parameter, the transac
|
|||
Note that by default, the operation will be retried an infinite number of times and the transaction will never time out. It is therefore recommended that the client choose a default transaction retry limit or timeout value that is suitable for their application. This can be set either at the transaction level using the ``set_retry_limit`` or ``set_timeout`` transaction options or at the database level with the ``set_transaction_retry_limit`` or ``set_transaction_timeout`` database options. For example, one can set a one minute timeout on each transaction and a default retry limit of 100 by calling::
|
||||
|
||||
db.options.set_transaction_timeout(60000) # 60,000 ms = 1 minute
|
||||
db.options.set_retry_limit(100)
|
||||
db.options.set_transaction_retry_limit(100)
|
||||
|
||||
Making some sample classes
|
||||
--------------------------
|
||||
|
@ -350,7 +350,7 @@ Here's the code for the scheduling tutorial::
|
|||
|
||||
db = fdb.open()
|
||||
db.options.set_transaction_timeout(60000) # 60,000 ms = 1 minute
|
||||
db.options.set_retry_limit(100)
|
||||
db.options.set_transaction_retry_limit(100)
|
||||
scheduling = fdb.directory.create_or_open(db, ('scheduling',))
|
||||
course = scheduling['class']
|
||||
attends = scheduling['attends']
|
||||
|
|
Loading…
Reference in New Issue